Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2738078pxb; Mon, 19 Apr 2021 12:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO7lb4SWGp7WLNiiheahTSa2HNVQe+aSQ9LCsCclZ3GwyYjCV/MVBYKBSMSxMm0um3InzI X-Received: by 2002:a50:9b4e:: with SMTP id a14mr27476429edj.0.1618861032595; Mon, 19 Apr 2021 12:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618861032; cv=none; d=google.com; s=arc-20160816; b=pVLO4HMuCncZVxsvWdebFUR9UACTowyrnzQSr1UtKOStde4KWmS9eOLAA3Dx3V4ec5 lXF5lgZoQHpaXDNwkHdvNUKaEFeK2H8+tsyrW86z/uCwlykfjuMaFDy6PmkyzF3FSuH/ JeioDhpZnUETGsqc5qcYMDzAXFXTTv7G8OPjmiQRYFv5/NB3h0oPxINF0WBUcgZ5WzZi cHsg+r1frZmArL9hFQL8mvfJM0sixlPtvDui49w7uoeUbMmG0Ce4R61Ljj/1A0nrbYxQ YF3SY3tnmI3HN4Ip5ZUsaKVFV+Ec5h929b0AaMJpc/3y+xkK25N1bvb2RASWhRcAnGne SeUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=cgBc8DK/uiwWd9qSl4rojF6ng4YEQX2bdE7yvqzTNqE=; b=RTozIpkUBSZWKL3JStTKxdp/5bMOkp4bcTkr3NGdQZ254ufrEGXLOD29MUlGECQr/G bI0eMADDGw3GYBte3Nt5chJ593Nf8a+mD0W2YuqQ6/b4n4bvyKbp1BH/91AZeU/1c6cL Lxoc0H4d72V5ghyp8Vd1wznH6lZC74+bwj/Qeum7Kq4eClQyXBrZfNX2Xm+XTRJYkzAL k6H2DhsyEHSXthJpa75eDCycAtE6GjWytyfqLXC+m91LR1A2Q5eMpgivuFG0EaWtQoNy Fs6bEBqbjrV3OBDI1NJRqNWwrGwwPScMnvGsiXvrhDrEvh/KSn5+rYGqwiFwIbRq2taX 8udQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="u/oVPFKG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r5si13074138edo.476.2021.04.19.12.36.48; Mon, 19 Apr 2021 12:37:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="u/oVPFKG"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240580AbhDSPya (ORCPT + 99 others); Mon, 19 Apr 2021 11:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239629AbhDSPy3 (ORCPT ); Mon, 19 Apr 2021 11:54:29 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DC12C06174A for ; Mon, 19 Apr 2021 08:53:59 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id w6so8929599pfc.8 for ; Mon, 19 Apr 2021 08:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cgBc8DK/uiwWd9qSl4rojF6ng4YEQX2bdE7yvqzTNqE=; b=u/oVPFKGt9zHYgML5cUAw/Efd89FKRDWGw/I98AIsuX396f+7JRPeCnIUHAHru1YT2 alg0X3wpoibmMgW+2MNttK/aM4Yl0f6ZYHI83pH39evE9PkcaLic9Fl6xyDZ1RiztV5D cb4hY/XzhuJsBWMqFuBXSTkNEEtW0pM9mhrSFYVQ7iKgpmUQAIb/jV9RoQmwn+I2SCaD XJylUweHVGOHHg5kiBEaLn2cNFptE/QUjaZuGr3UOFslqFjPbhtXVQ1kj8KbjbRR6hwB 38JVZeVYq3g9co/SPSJGM5/9scP6o6h0q29gecdtZ+eUupOg8yqaxzt7Dw2/BW06JFYw qKaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cgBc8DK/uiwWd9qSl4rojF6ng4YEQX2bdE7yvqzTNqE=; b=SG9v+43cpmnBib8pHL2D7XQQo3DQ+KZVSzUFSJU/0mhA878MFQdU+xBWfuKSUF8uHh j5EBZ+GHMOSeQRY1LE4wihEx6Jy4lJqNYaUNyObisEAqTwNQQ184n6xyhxFpSnlzRdXV BjI0h6AsZ/wfOKsP7jt7SfvLajnKLVzsp2+7DmaBUbeIKZWma0rwnx4rhYIpWUbW/Oop dThsMb1566uL+ilvphKF156y41by/mYGIvMwtMmltnCG0ZJSYORCl9Ow0AtBdqigxfBw kRNQEsCgwdDP6wc6L6QSbdPaqFzoOs0syu+aCKZnJrgeH75rXxrkUgf7yGnllXqSWt4b My2w== X-Gm-Message-State: AOAM531CispXe4jzLq08QvnCpkzqCML7aL8YunyzMRX2vRZvjRjjNNvl jG/rGH1NLw+ARyP/JsFuqTWk6A== X-Received: by 2002:a63:145a:: with SMTP id 26mr12295651pgu.300.1618847637567; Mon, 19 Apr 2021 08:53:57 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id m7sm1704803pfc.218.2021.04.19.08.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 08:53:57 -0700 (PDT) Date: Mon, 19 Apr 2021 08:53:48 -0700 From: Stephen Hemminger To: Dexuan Cui Cc: davem@davemloft.net, kuba@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, liuwe@microsoft.com, netdev@vger.kernel.org, leon@kernel.org, andrew@lunn.ch, bernd@petrovitsch.priv.at, rdunlap@infradead.org, shacharr@microsoft.com, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: Re: [PATCH v8 net-next 1/2] hv_netvsc: Make netvsc/VF binding check both MAC and serial number Message-ID: <20210419085348.6f5afd0b@hermes.local> In-Reply-To: <20210416201159.25807-2-decui@microsoft.com> References: <20210416201159.25807-1-decui@microsoft.com> <20210416201159.25807-2-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Apr 2021 13:11:58 -0700 Dexuan Cui wrote: > Currently the netvsc/VF binding logic only checks the PCI serial number. > > The upcoming Microsoft Azure Network Adapter (MANA) supports multiple > net_device interfaces (each such interface is called a "vPort", and has > its unique MAC address) which are backed by the same VF PCI device, so > the binding logic should check both the MAC address and the PCI serial > number. > > The change should not break any other existing VF drivers, because > Hyper-V NIC SR-IOV implementation requires the netvsc network > interface and the VF network interface have the same MAC address. > > Co-developed-by: Haiyang Zhang > Signed-off-by: Haiyang Zhang > Co-developed-by: Shachar Raindel > Signed-off-by: Shachar Raindel > Signed-off-by: Dexuan Cui Acked-by: Stephen Hemminger