Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp14655pxb; Wed, 30 Mar 2022 21:30:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH1/9oUIlR0VssrD/TDjEoAZGGHq/3IIl0dX/wJa9z9TqrgomPB9f9UihNZmjX/uVncz5D X-Received: by 2002:a65:63d9:0:b0:374:6b38:c6b3 with SMTP id n25-20020a6563d9000000b003746b38c6b3mr9259621pgv.195.1648701001045; Wed, 30 Mar 2022 21:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648701001; cv=none; d=google.com; s=arc-20160816; b=eKVVoSxrXS270KFa6GoCwo3hwKz2TPborzflE4NUBJ/sDIFQFZOrlMz6U/vXdaBbpM 7y88fRLVExJ3gaCjfzh0H/Bx0pdN7IcASU/RIyuI8yG7YgUQd0YTGN/wglPCIrruNhga hobufn3zhJEczeKd4asO54Jy+mkJ6VYR2QRu028gjpePVr4WFh+/2GKgRwUFQgxWotPe W58W9nZWnv3aCGpvjxrVONiz5oRV28RsgQm3w7A+9Uf3D6DFTSppVG7/1PjGJA4l5KsQ yWOe28sSZwTveUcqb5gHCwuVxaJmC7BVNEPYttrwrx+yt85B4pRy4d6DDuEw5ofHj1TJ xN4g== 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:date:subject:cc:to:from :dkim-signature; bh=ArqU9y7sy5ZNZyucdBuHpOakhUvoGEa9ZbVs1G3Vl5M=; b=SlPYpUFaaacgxVQ6HaDtR4ZpMGPt59mNIIEbapLPiPjVFopyFt21r2/8M8ParaUrVC xf4XMEYMk91vtMW0OwtgkxCWkRIlaDNra1h5YccBM5hNyi61ODk1x8w+0Hw68ashtra/ LEQz5ZqevgyfQa+iOxK8QCLGwhmwDenD13PxOLQhqc+43/+0SjgZyFdFViU3a8ZENchl O8TYHnvRIe01Tt1OfUogwqiS6IAcfbkKDSJXK82EIhp2EkI0GSQ5zKwaBLBZAIJt8f4x v+uYwvwIkd1AOkujv+exn7y6+lDLqSEvLUn/8BFtdsSj1D4lZsCOL30kDYVTGkGf49dN 8qKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WNS5Q/+V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n26-20020a63591a000000b003816043f110si22068692pgb.773.2022.03.30.21.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WNS5Q/+V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6F791D4C01; Wed, 30 Mar 2022 20:24:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344644AbiC3Mgf (ORCPT + 99 others); Wed, 30 Mar 2022 08:36:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345037AbiC3Mfm (ORCPT ); Wed, 30 Mar 2022 08:35:42 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1164A8303A; Wed, 30 Mar 2022 05:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648642894; x=1680178894; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OXzBCDD0s+U+ac+j1S8pe7nAWp2yh4vu1aPuuDcA/hE=; b=WNS5Q/+VIXRt1P9pE7NMIqhuqdvP3iS3x0bL6PMQ1XqeRfmb3giQcN+k xFUK0wOMnL2yb2v9CwQHw48Zl8Bp9RmfB0PNinRYHTliSC9ijg6zM1592 nyWUaiSGcFUSZJ7pW/t2j+9pQa3TrctD30meQ7N+QsCVDTFkNJ412/WC4 6HmKxl5OJjpB8Jx9y5GlSo5NCmsAZlfWE3uV7KlIhyxzSbC3Tl/mJ41QS XIKsYd8m+KVm/bp4b4e6TLRwlrd5ipZ6CGD4ovmeumcJBwE2tUm/+xWH3 rsOxuyWSiSLxoW9wDyyUFNsxSNUPtmOGa1xzBe+oGDTmnFpaABD9zmXyF g==; X-IronPort-AV: E=McAfee;i="6200,9189,10301"; a="345965530" X-IronPort-AV: E=Sophos;i="5.90,222,1643702400"; d="scan'208";a="345965530" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2022 05:21:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,222,1643702400"; d="scan'208";a="837252293" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by fmsmga005.fm.intel.com with ESMTP; 30 Mar 2022 05:21:15 -0700 Received: from newjersey.igk.intel.com (newjersey.igk.intel.com [10.102.20.203]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 22UCLE8c019312; Wed, 30 Mar 2022 13:21:14 +0100 From: Alexander Lobakin To: "David S. Miller" , "Jakub Kicinski" , Paolo Abeni Cc: Alexander Lobakin , Jacob Keller , ivecera , "netdev@vger.kernel.org" , poros , mschmidt , Jesse Brandeburg , Tony Nguyen , "moderated list:INTEL ETHERNET DRIVERS" , open list Subject: Re: [PATCH net v2] ice: Fix MAC address setting Date: Wed, 30 Mar 2022 14:18:35 +0200 Message-Id: <20220330121835.2737360-1-alexandr.lobakin@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: <20220325132524.1765342-1-ivecera@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Jacob Keller Date: Mon, 28 Mar 2022 17:53:19 +0000 Hey netdev maintainers, > > -----Original Message----- > > From: Ivan Vecera > > Sent: Friday, March 25, 2022 6:25 AM > > To: netdev@vger.kernel.org > > Cc: poros ; mschmidt ; > > Brandeburg, Jesse ; Nguyen, Anthony L > > ; David S. Miller ; Jakub > > Kicinski ; Paolo Abeni ; moderated > > list:INTEL ETHERNET DRIVERS ; open list > kernel@vger.kernel.org> > > Subject: [PATCH net v2] ice: Fix MAC address setting > > > > Commit 2ccc1c1ccc671b ("ice: Remove excess error variables") merged > > the usage of 'status' and 'err' variables into single one in > > function ice_set_mac_address(). Unfortunately this causes > > a regression when call of ice_fltr_add_mac() returns -EEXIST because > > this return value does not indicate an error in this case but > > value of 'err' remains to be -EEXIST till the end of the function > > and is returned to caller. > > > > Prior mentioned commit this does not happen because return value of > > ice_fltr_add_mac() was stored to 'status' variable first and > > if it was -EEXIST then 'err' remains to be zero. > > > > Fix the problem by reset 'err' to zero when ice_fltr_add_mac() > > returns -EEXIST. > > > > Fixes: 2ccc1c1ccc671b ("ice: Remove excess error variables") > > Signed-off-by: Ivan Vecera > > --- > > Thanks for the v2. This looks great. Good analysis of how this happened in the commit message, I appreciate that. > > Reviewed-by: Jacob Keller This is an urgent fix, so we would like it to go through -net, not IWL. It has this Reviewed-by, and also Acked-by: Alexander Lobakin > > > drivers/net/ethernet/intel/ice/ice_main.c | 7 +++++-- > > 1 file changed, 5 insertions(+), 2 deletions(-) > > --- 8< --- > > -- > > 2.34.1 Thanks, Al