Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp745017imm; Wed, 17 Oct 2018 07:41:24 -0700 (PDT) X-Google-Smtp-Source: ACcGV63pxFLleQOsVqwjI4euztnN04iBy2+s9GSxBp1QvlnT7d848r7+U0VZ2+BtheibCeiZdwDn X-Received: by 2002:a17:902:20c9:: with SMTP id v9-v6mr26229003plg.156.1539787284674; Wed, 17 Oct 2018 07:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539787284; cv=none; d=google.com; s=arc-20160816; b=dQIo7lm9rK1bNbi8lBr/hJxEkEMhCVfgmdrE16bTutYIv9ooqw9GnZWW0gQ7Ab1AYk NCdC04QyOLqim9Q7ore5CRgeggcR0X36Xz6HxNR00lzdhsy3QiXe2fSot/WZIldFdH5M kqCO6D+v3S0RP9Sh3ARPAtTuBKf/kvgI6xnJ4T3uMeVGLUYvyj179f/uIaoaUnKm6mku vG/lTjpSa3pnylwYtYSmqbQ4sTGheaNtlwr92mUw3JSglG1BhtokLV8L9xmo8xd39YiN 0B9xXk/Q1UG2SH6QUlseS8xvYa8JZ/eY22zB0YkSYwp+0iVYRszIU2uT9ysR0/hXhqDq pUYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kl6EmOSOOqMq9WmFBvAUpa9aa32LCjxAp1UjTELG4OQ=; b=Jl76TLqUnb2cpR3wo7bfiLZdqXd5CWQR7ryeQNDqARQMchnJcq8gj/pJIEJMUNMOMF C38ZO2ykkHkOgAJ8DroMHjn+Yyo65LNJrUMZzc0IX+VoKyppenYfNN2GLdZusjA7pGjC GffdTLTm0EvVzIEEnD48yFA5mlJrzk3mT7fHMSmQJuKGm1HPxUoZqTPAdAvrl5CYSD+6 QrTqpwpMkrJYvhKMq6OBJ5vqpUWE0RS+fg3NuF0p6C0gkYUL20Tn+xl/Ho29sPctocse 9zTmQaIdur2gp41x7P+0t660zA/WQoLYANb3JJHgXGuQMfujANsFlyeocznRJc0gLiCg o5xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dBTrCyGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si12616723pld.49.2018.10.17.07.41.07; Wed, 17 Oct 2018 07:41:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dBTrCyGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727495AbeJQWgh (ORCPT + 99 others); Wed, 17 Oct 2018 18:36:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:33902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbeJQWgg (ORCPT ); Wed, 17 Oct 2018 18:36:36 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 165A12083E; Wed, 17 Oct 2018 14:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539787236; bh=skwZqTpQh9KnWmfZtQwc61ZdE7dbsk1tNjTwjtFiZYE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dBTrCyGxVZEBqR+IQX0FZu7LdJkyKrhoWWI+DS051/JumxOjSm14FhJm0wsaoDXe6 C8jnGeyczcCZJRacrK/kqDnmhhLJgOmcCpFJ56pbsyLMAXRLpPyeZ6KCkgqAuNCsWM Pkt/+WRaFW8H2KMZNhuPHFrgtRxSXtJRY6dRmrWY= Date: Wed, 17 Oct 2018 10:40:34 -0400 From: Sasha Levin To: Greg Kroah-Hartman Cc: Haiyang Zhang , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Stephen Hemminger , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 4.18 101/135] hv_netvsc: pair VF based on serial number Message-ID: <20181017144034.GB135013@sasha-vm> References: <20181016170515.447235311@linuxfoundation.org> <20181016170522.303317746@linuxfoundation.org> <20181017074629.GD25537@kroah.com> <20181017131717.GA10130@kroah.com> <20181017142621.GB366@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181017142621.GB366@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 04:26:21PM +0200, Greg Kroah-Hartman wrote: >On Wed, Oct 17, 2018 at 02:15:30PM +0000, Haiyang Zhang wrote: >> The VF NIC needs to be paired with synthetic NIC on HyperV -- to do that we >> use MAC address matching before the patch #A. But a non VF NIC can also >> have the same MAC, which shouldn't be paired with synthetic NIC. So a better >> method is implemented by #A to use VF serial number for matching. >> >> But, #A has a bug, which causes matching to fail. Patch #B fixed it by extracting >> the VF serial number correctly from slot info. > >My question is, "what bug is patch #A fixing"? Somehow things have been >working just fine for people without this, right? Remember, new >features should not be backported to stable kernels if at all possible. The current mechanism works fine most of the time, the problem is that once in a while we'd see collisions between the synthetic device MAC address and a different network device such as a bond device or just a regular non-VF network device. So while in most cases assuming that MAC is unique and looking up devices based on it works, there's no guarantee that it's unique so this assumption isn't true and things break. This is why it (usually) works now, but still has a bug that needs fixing. If that makes sense, I'll requeue it when the fixes have soaked upstream for a few weeks. -- Thanks, Sasha