Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6083761rwb; Tue, 22 Nov 2022 08:33:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf76bU8jsXOKF4G/v1nQQcWTFah83A7eOeqqBSCEs+UUSFvLJdwZOl8ajgsow8UMNu1f7d6f X-Received: by 2002:a05:6a00:440b:b0:56b:b53f:e887 with SMTP id br11-20020a056a00440b00b0056bb53fe887mr5224973pfb.3.1669134821486; Tue, 22 Nov 2022 08:33:41 -0800 (PST) Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y5-20020a17090a86c500b00202827b6f5asi12536876pjv.162.2022.11.22.08.33.30; Tue, 22 Nov 2022 08:33:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Udi/BYh1"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234388AbiKVQXt (ORCPT + 90 others); Tue, 22 Nov 2022 11:23:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234305AbiKVQX0 (ORCPT ); Tue, 22 Nov 2022 11:23:26 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D48411C909; Tue, 22 Nov 2022 08:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669134205; x=1700670205; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=K+7W8DofWSLifm+kIBDk5P+4e0sEO6lLJNW9MHOJjM8=; b=Udi/BYh1AsSTtgrYusZr8gP7XZyiXLkqGC+UiKCovjYUTDuXlh4I5LIL 4sk60dga4fYSfvyyzHrCO0t/fPsftwuRHrrp5uHDroBqYRAt4uj18Yzu6 C+B5GMVb+xGf5AQAl8L8PYqCYLrbowXx9fTXlUmBFDMKo77txleapASUg I4r2iVRJFkjldjoRaO8xMwPWsA1VFi+awPPmyZYbDOC/g9VEDOC2b+aN7 glK7W6nz4lOAc8I46KQ1G5XT2JR3/8hghLc+SpJBSZDYZWJf5L4DE9W2I 48vaOdLSVL//VGPRJB5MWBqFpuholXvC9tspQ3B5b6/z8YvV0JqNkqrF3 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="293564825" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="293564825" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 08:23:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="730454768" X-IronPort-AV: E=Sophos;i="5.96,184,1665471600"; d="scan'208";a="730454768" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP; 22 Nov 2022 08:23:14 -0800 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 22 Nov 2022 08:23:14 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 22 Nov 2022 08:23:13 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 22 Nov 2022 08:23:13 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.47) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 22 Nov 2022 08:23:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fL0oPkuvOzNTHUB1WnLJLv81tOGWTlvINnL54mFRdh2U9+++4gkaE0VEKYP0rF7jfD/QRIG4R2wj7UgOYWfF3lQRqVWdkwxCECFWf7hhU9fo19DsUcB+1+Z4qFJXZAW/0Qaci8zCTpwRi19IRPk2VHCbStm8WZjI3UrPgG5nog+/v0jabKutDBQg8YDaVGfogAkhoU0UrHuRoHLRDgza6Hiq1PcKLv5nXiFn0U1G3U4gXH1UfdxMMJLdByh2rAckNPV51L4aTthrMaI0DA1ScAlMYi+s3ZAL84ACyobdiQvQBOnfbdWMh5L8qtPG1PUbPrGbKHjVg9l9RIpFBaZBSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CztlnPuWZ+yz0s4kdDP3ScVXFfNbVVKogWWaVhT9CX0=; b=hfBFs2+PLZtdEr0EURl0T0k9PdjOHWBMJcWAIq1B+ZUqKwwj/BeRf0PsOvclWx782LaX6y9KWLVW80Jocvr6eCp4S3/JW6avhY8qWNKfTkwzL+0aDKVzM+NY4YOIOClaSt9/d+sNu4vJGeSlHSWjpDEV7O8lrv52YQkZK+kyY0scjwM/2RnXu2v6kXCZ1bCK4ZgDWU9NmRt2rkb0We4erxVJGcHyv/BLQOLFgINm6EZZQrxrDlz4AdgvMQ63DNPg5FJt//OWLjBb6ctvVDoznXTkUq/a9DSH3qUn/dSjmou1uNuOfPQTnFplmk7VZQxWYSlGx7k4dh8znh1LPLhY8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6117.namprd11.prod.outlook.com (2603:10b6:8:b3::19) by SA2PR11MB5068.namprd11.prod.outlook.com (2603:10b6:806:116::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Tue, 22 Nov 2022 16:23:11 +0000 Received: from DM4PR11MB6117.namprd11.prod.outlook.com ([fe80::5f39:1ef:13a5:38b6]) by DM4PR11MB6117.namprd11.prod.outlook.com ([fe80::5f39:1ef:13a5:38b6%6]) with mapi id 15.20.5834.009; Tue, 22 Nov 2022 16:23:11 +0000 Date: Tue, 22 Nov 2022 17:22:59 +0100 From: Maciej Fijalkowski To: Akihiko Odaki CC: , , , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Yan Vugenfirer" , Yuri Benditovich Subject: Re: [PATCH v2] igbvf: Regard vf reset nack as success Message-ID: References: <20221122152630.76190-1-akihiko.odaki@daynix.com> Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20221122152630.76190-1-akihiko.odaki@daynix.com> X-ClientProxiedBy: DB8P191CA0015.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:130::25) To DM4PR11MB6117.namprd11.prod.outlook.com (2603:10b6:8:b3::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6117:EE_|SA2PR11MB5068:EE_ X-MS-Office365-Filtering-Correlation-Id: 28bbf54e-954b-4dca-c859-08dacca5d948 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rjNc9hRhL7ozaOj7mA8562NgPymB7y0nEE86yEv0vAPaB0CTlmCZKARVWBbGAxF+EimaW+EAlXwL3nCzRKEffMU+G4/yu6D5LntOYC9YGmBJS32KULgD6xiWElumXF2WFO+SlqfZUvPukOWzGMDa5Z6r7GsfjchW9MHF03l3LMArVOTHq5QtqJuIaZ6LCHE9ym+iJp1To9ykwIb+gNkjdwL4oEztfxlCkHuwtAxCVEh/9qlk0iPRv90H+MlBJzI6wonbjPLDPtFiKNF6TE/IgHIhM1/xn8wmCf7RMrTSXdgDejvDrPeTH79WDVRrRtjG8VQMPWP/6EXzClM0yUco8egveJ5qI/cBLq17elgSJFnBMKCttRt5NnxVlshkU1Ts5L8q/FXYupHSt5DggQZ0AKcE+l9wy+Yapvvo+F9FvXFzTJ3RFtZhCP6J2VT+5fT9h9cgcfRLUjZC+E3yvL3l/Ut5yaBWEPAK/D3HEPRd2NYjSoRlJHy9ktHqrmdhH1/jMBQUX4+FdaNDRSmTz2vC+3m9Qi+e0qQGfleaheZg26sqITD150igyl5rRKJZK1zTRvVoECAcZTGOt1BS0O6xiRS8CsNJM/UuABpmcjnS+2WqL96J9bV8A0t6Qqwj91/SBKGJei8YzBhchv0CLxSE0Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB6117.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(136003)(366004)(376002)(346002)(39860400002)(396003)(451199015)(38100700002)(66476007)(41300700001)(82960400001)(44832011)(2906002)(86362001)(83380400001)(9686003)(6486002)(316002)(66556008)(66946007)(8676002)(4326008)(6512007)(186003)(26005)(54906003)(7416002)(33716001)(6916009)(478600001)(8936002)(5660300002)(6506007)(6666004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?4oM1GobknaNr+7bO0rHMpsGZmE87ajlh54HZ9jI2a9qoSplF4+rt/pez5B79?= =?us-ascii?Q?irFIKvcfmpDw0BCKL0j40FATCdjR9NkTgFUVJkwsbd037fmzGlcUUeUPt/3o?= =?us-ascii?Q?4mSzFs2mXi3Re8wNhlIpVxIUQRILP52BsDeGugCJpNg2N8+8m9Dx29O/R8PE?= =?us-ascii?Q?VFDLFHSMmXRcp3uabf1VXQhRitAECMt4cKLTTYgNMjCEEzCj+me6ORJl/RzQ?= =?us-ascii?Q?x3S1s6vEdkh9GQWEOPoqez8uhxvTHE+vb8tWOWBVNHNNeCOgNU8HAlcOu9mD?= =?us-ascii?Q?1M2ZXPttHXhqTZdP38DsoYcA6yOdUc3nc3C8afWFj5FUh3cI7cs3HsTVgPmE?= =?us-ascii?Q?ww+lzCbfY1GXgwL5nDsxFGdkw5TfVkKwqvOluZCLUdgz+HN5coboMIgXs2jn?= =?us-ascii?Q?CLgvxqnp/+Bwdb1gnK/rwppMqqNsvMyweiTQwFiCTS7q4hYVRPyj6bQmNSKw?= =?us-ascii?Q?whC+EReWulaVxyZqz1xKX9QBJQoIjfl8mes+D0vFEYUtbU7s6VH/CG4LCWOF?= =?us-ascii?Q?Rx9RYUycRUCqwHjbYpDZYEGty96OLgAB8ebkF/1B/6L2rfQwcKDqOMO4mqiA?= =?us-ascii?Q?ssDcdoeMkJNbL3YrfnondyjmXQwevMTPiPPCfS7U8OmfbmUrpwP82lQuiPjt?= =?us-ascii?Q?s3D5wnGHuq9cVMthEVyP5XJAMPeLUV32B30nLwG6Hi0v248whGPnL+rrjc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xlA+07MsUVkeMX8LUP+hltbNf?= =?us-ascii?Q?Yw=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 28bbf54e-954b-4dca-c859-08dacca5d948 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6117.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2022 16:23:11.4848 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gt5NXtA4NK+C6fcB8L8FTYJ8/41vj3aomAnLZXVJ1nmkFUKfxk+MY/vnmprhc2wgIM0zs2j/KAqoetw3oAlLk1rkg9OrB/qwuTz4Bb/sFoc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5068 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 23, 2022 at 12:26:30AM +0900, Akihiko Odaki wrote: > vf reset nack actually represents the reset operation itself is > performed but no address is assigned. Therefore, e1000_reset_hw_vf > should fill the "perm_addr" with the zero address and return success on > such an occasion. This prevents its callers in netdev.c from saying PF > still resetting, and instead allows them to correctly report that no > address is assigned. What's the v1->v2 diff? Probably route to net and add fixes tag? > > Signed-off-by: Akihiko Odaki > --- > drivers/net/ethernet/intel/igbvf/vf.c | 15 ++++++++++++--- > 1 file changed, 12 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ethernet/intel/igbvf/vf.c b/drivers/net/ethernet/intel/igbvf/vf.c > index b8ba3f94c363..2691ae2a8002 100644 > --- a/drivers/net/ethernet/intel/igbvf/vf.c > +++ b/drivers/net/ethernet/intel/igbvf/vf.c > @@ -1,6 +1,8 @@ > // SPDX-License-Identifier: GPL-2.0 > /* Copyright(c) 2009 - 2018 Intel Corporation. */ > > +#include > + > #include "vf.h" > > static s32 e1000_check_for_link_vf(struct e1000_hw *hw); > @@ -131,11 +133,18 @@ static s32 e1000_reset_hw_vf(struct e1000_hw *hw) > /* set our "perm_addr" based on info provided by PF */ > ret_val = mbx->ops.read_posted(hw, msgbuf, 3); > if (!ret_val) { > - if (msgbuf[0] == (E1000_VF_RESET | > - E1000_VT_MSGTYPE_ACK)) > + switch (msgbuf[0]) { > + case E1000_VF_RESET | E1000_VT_MSGTYPE_ACK: > memcpy(hw->mac.perm_addr, addr, ETH_ALEN); > - else > + break; > + > + case E1000_VF_RESET | E1000_VT_MSGTYPE_NACK: > + eth_zero_addr(hw->mac.perm_addr); > + break; > + > + default: > ret_val = -E1000_ERR_MAC_INIT; > + } > } > } > > -- > 2.38.1 >