Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4542230rwb; Sun, 4 Dec 2022 04:07:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf6br1CTexZsONq8ZfmEaFENvi5krV8ebw9G2Ua1jwREmr7WpVm6xVVNIYSIo+w4YFeG5uav X-Received: by 2002:a63:1d12:0:b0:478:5e54:c629 with SMTP id d18-20020a631d12000000b004785e54c629mr18054560pgd.291.1670155627538; Sun, 04 Dec 2022 04:07:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670155627; cv=none; d=google.com; s=arc-20160816; b=PHlkGv38VvOucEjilBb9/edkB573eeIchDcMzysz3aUX5fWJeaLli2dLueaVXTVPrP GGpzwYQ0Zi+YQfEG5qjN+tMrfnjkhyOqxpmugbEvqVVsU+U7FpXzrVa3A8ZOJ1O14Tnr NlRsMLPJpUOcc3OSFRdYkKbxyItQr1W3B/1X3ey6CiLh/9Sx3mCqQwUK1Aoz5M0QG6Ff 35iMBOrRWLsq9jDdJHxsMVf3ik08GX7i4hzA0bXYg2tVkzM0b8XvTJSAZoJWqyL6tzCl 96Jo4sbG22obfQWJCWxAsqtq9gU2a7/duN7aFHOsXwXNzX1vRu8L0hN56bkHlTDq/yl1 NR7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=M2QLm70O5WVAVBN7OnXft91OeBH0jH4vXcoIXrUS1mY=; b=TUnZj7naeyi9rahHSQ+cB0nJCvZLb9oXQLhDqdqZe5xBtu5Mnlk9uVXeelYEuQfDSM e3J42K/jBxpEQsHLPYbzkz1yuTDwtJ3gMtXdTPjMtem7cweOYBuOydUkRmuHyllEqaZ5 q7drDpEpkljFJ0qSin2VvFGd0ttjrUtTQMLo4kPXdD17+7aQ6KGnzLZfrieoQ3QIUd3r /pKNTJ9U+ZYPtzIJrkpamypQLBxUfyP7qWXlx7KcmmkdWVGO9CXyGcJzqlBJE2qtOmxm 0L3+g4CLUVD1wGcDEIEMY2KLF05SSxZtKURaqTJSe7MzZVbBTjgOeaRE8cyuvxfhDVME hWbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MH2NmrX8; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a056a00084900b005752db14951si12880673pfk.218.2022.12.04.04.06.57; Sun, 04 Dec 2022 04:07:07 -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=@kernel.org header.s=k20201202 header.b=MH2NmrX8; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbiLDLVK (ORCPT + 83 others); Sun, 4 Dec 2022 06:21:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbiLDLVI (ORCPT ); Sun, 4 Dec 2022 06:21:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83E0A140A2; Sun, 4 Dec 2022 03:21:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0B01360DF9; Sun, 4 Dec 2022 11:21:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07299C433C1; Sun, 4 Dec 2022 11:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670152860; bh=qJqhP6XK8dsdvrn2PwKJvrIom0XMMHhvRQlCW31oCgs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MH2NmrX8pdmpi7sHzYOwh8Wp9CxfSLhxSOwN7MJH0GrTdLS6h6vZQs7AMvyt6DtYr QQmA1TLoCbXKnHsiAxIj0FznfmCysD8jSHOUfMcORcycanAk4xdQ55zKftddux764x fG196F6gte5huO5q4HvoyuL5zh5j3yJ2syhDVRz6DMIdANN5z5MAjOktu0q4yay5jp ENAbuxwdMPQxS0c3BdaL5VAVmrQhJEmdm2H9sSZokRIMF6OXeODX1bc4N8Ew9bzgtQ qL51RBBHN8KyAjaEtCpIN1tFQUJA+XtytQoDq1r+3PDhKXu26lERruFV5EcqfehQ+S fHOBvC9L753OA== Date: Sun, 4 Dec 2022 13:20:49 +0200 From: Leon Romanovsky To: Akihiko Odaki Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Paul Menzel , Jesse Brandeburg , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Yan Vugenfirer , Yuri Benditovich , Tony Nguyen Subject: Re: [PATCH net v4] igbvf: Regard vf reset nack as success Message-ID: References: <20221201102003.67861-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221201102003.67861-1-akihiko.odaki@daynix.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS 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 Thu, Dec 01, 2022 at 07:20:03PM +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. > > Fixes: 6ddbc4cf1f4d ("igb: Indicate failure on vf reset for empty mac address") > Signed-off-by: Akihiko Odaki > --- > V3 -> V4: Removed blank lines between cases > V2 -> V3: Added Fixes: tag > > drivers/net/ethernet/intel/igbvf/vf.c | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky