Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp576892rdh; Thu, 26 Oct 2023 09:47:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpxVjroI7NXaM2LvFaVVHV37ydJ/m8b6UjF0jCJhJYYHYeg8JxsK3hAg3Y21m9WBm0XVor X-Received: by 2002:a81:440c:0:b0:5ae:c0e2:da1b with SMTP id r12-20020a81440c000000b005aec0e2da1bmr3470671ywa.45.1698338878744; Thu, 26 Oct 2023 09:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698338878; cv=none; d=google.com; s=arc-20160816; b=0lqJ7sOM3ogtGkRtT3bmP6FMb1XC3vjmBlYC15MbiCVQoJy6DwJ7z6v81Kh3woGCZD RoRgK++jugZilLd0jJDFFjOxcRomnhSojw0S2H6DVoBAmOH80fbTrfnqsCknlVA1ji9H wlXknWi+EXhfIdz3F5Kfl+QdStNQB2ENP+preXh0lsl0UoX7b0qtxbRTugbUpUJoDyIc dr/eeJyiuXDH9K8XrDitTWY4vBiqRKFAL574WLYr5b+YQiAkEVjfImUTP8thV/9HO1Og a2IqGapBKIGusv5EzIk02zb9w72R8SMhTATxWR4AkQOUD/C+dbqS8fr4JqcdTPdLRO0O OrIg== 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=LdlXvNC1oH8LpDpUtTg5FvSVkJ8vtx+5H8ZrGXJ1ghc=; fh=UbchTbcGVOYoJ0URSc1wcvcV5bO3cOju6iJFBdQBbWE=; b=ko48z0TqWp9eWtrKTH9in9Pa2l5IqgK3A69WQpEiN50TfRs35AtHjnWsH8+QqzzrgL H7kycd/HYxgIjdJN4y32CE4MvKFkoBlcJ2EJ0EXU5g6hKLiTxFSMwUtW6P75NR+wb7DM eZv64Af9OLDIcd9U/Z2oI4yPcI+jYbP5QhRjr8hKPiHOKCAo63rOP49urtR+M2zP1fcV vIJLK7m7H5nW90z50FcFvjQqYAIzh7O4zJo24Pd1Pi54Z6SrWHZVmqwZdR1YhRwvIF1G U6j+8H6cfPwhXDuPA/FZsiX68Wt07oa4Ugr67fUc2vp6t5y3L1CB6K4sU5qPN/VnJ/hV OHtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=HhVgDKS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id i7-20020a81d507000000b005a81269ac8asi15471732ywj.224.2023.10.26.09.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 09:47:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=HhVgDKS+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E09A88096FEE; Thu, 26 Oct 2023 09:47:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230340AbjJZQrZ (ORCPT + 99 others); Thu, 26 Oct 2023 12:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbjJZQrY (ORCPT ); Thu, 26 Oct 2023 12:47:24 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C835194 for ; Thu, 26 Oct 2023 09:47:22 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6be0277c05bso1055732b3a.0 for ; Thu, 26 Oct 2023 09:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1698338841; x=1698943641; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=LdlXvNC1oH8LpDpUtTg5FvSVkJ8vtx+5H8ZrGXJ1ghc=; b=HhVgDKS+/6Qp9UyLmiFRY1h2ZhU1Mo7r9tXKn/ETcmosEa5Y7uMDgVrxRPhvxMNv02 9yKL6GZSSVOIL5GbTQdiCulm4EyW+qvun8qSCiVS30sNusT6MLfD1ZktERDVC3Qm/+9v IegEp9T1KZf0KE3f7SWLmS3eh0DZ02B3alzmFzdCh0nkwH5uRmTAcgkh0As9sjaEoLtn 1bnKMjgAXxuVQAnxYYoQWsHfu6eRhSGqVyEmZfboAAHng05TS9Bz85B8VAfRMDSJk8je 7Yd4Shd1EbiHswa/w9bogdExf0N5HogIrwTiiH51Hox5YWO89LADi17W7SljOvMO7184 Rvmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698338841; x=1698943641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LdlXvNC1oH8LpDpUtTg5FvSVkJ8vtx+5H8ZrGXJ1ghc=; b=b0EyGTn+2aXXwtnpycWbInIUsK2AgIfdrhLP6kbsFOr0qcH5JLHBNh16waZv28Ib+p ynWWwk6cEOSjreMCup1jeiGPoybvvRJfIiVzhemov/o8RoXwLA3ZgtDjo7Hk5WU5+8Ln TfARS7IEJf5BnX/t4udX03qL/HNyd6SWjMqJa7ry1tYoZctjETg7jGrflO4Nzck4ViPn K6pX2PtttxWCHR7KxYbrsqblHdwrGkogcGliRrX6kZwudxLatD2kVGvqs8hZSt65eMOR xeIHn742ra/Wp1sWotaMb00yJqmKJBfP5uAuJkJT04SLDXm4f8RujQ+QY15RqHuNXPJb gtIg== X-Gm-Message-State: AOJu0YxqJqKKe0zzRrzabdJFtgdnWjcTOQ2CV2M9yQ7+ekqZ3tGLTEn7 jLV6aKnmqSJKrRrRCQarJ1YO5Q== X-Received: by 2002:a05:6a21:47c1:b0:15d:9ee7:1811 with SMTP id as1-20020a056a2147c100b0015d9ee71811mr334913pzc.36.1698338841412; Thu, 26 Oct 2023 09:47:21 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id x20-20020aa79414000000b006bf53a51e6dsm9749547pfo.179.2023.10.26.09.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 09:47:21 -0700 (PDT) Date: Thu, 26 Oct 2023 09:47:19 -0700 From: Stephen Hemminger To: longli@linuxonhyperv.com Cc: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Long Li Subject: Re: [PATCH] hv_netvsc: Mark VF as slave before exposing it to user-mode Message-ID: <20231026094719.04cace95@hermes.local> In-Reply-To: <1698274250-653-1-git-send-email-longli@linuxonhyperv.com> References: <1698274250-653-1-git-send-email-longli@linuxonhyperv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 09:47:50 -0700 (PDT) On Wed, 25 Oct 2023 15:50:50 -0700 longli@linuxonhyperv.com wrote: > list_for_each_entry(ndev_ctx, &netvsc_dev_list, list) { > ndev = hv_get_drvdata(ndev_ctx->device_ctx); > - if (ether_addr_equal(vf_netdev->perm_addr, ndev->perm_addr)) { > - netdev_notice(vf_netdev, > - "falling back to mac addr based matching\n"); > + if (ether_addr_equal(vf_netdev->perm_addr, ndev->perm_addr) || > + ether_addr_equal(vf_netdev->dev_addr, ndev->perm_addr)) This part looks like unrelated change. The VF mac address shouldn't change, but if it did don't look at i.