Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp5518355lfu; Mon, 28 Mar 2022 15:51:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl02+M1Y+T8xPDycoFjNtbX/X/zLnXdJuqizZmAiPXL4oIO3kcwc/bq0f0IUfk/aXK7D+A X-Received: by 2002:a1f:a112:0:b0:33e:2073:642 with SMTP id k18-20020a1fa112000000b0033e20730642mr14710152vke.21.1648507865114; Mon, 28 Mar 2022 15:51:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648507865; cv=pass; d=google.com; s=arc-20160816; b=Ig5LkEUJCpZ6b2FJlqhNb5sF4JDwvGvNxTgl+ZZbjsc/6Aqz8zJmJtCCGd+57KDjlT 0w0w47gWZ907enyIBsay92yfN+9eWTfc33VG6VwRNRPgQlsvfWe9DvAb/4IZCN+NemkQ d3O7HpTU0ok5Q6hznICc4NgDBKjgCcUC/U+Tr2A3S2C3Ka7YeOQeOdj7GsMr7wIUqDe6 gKctLlLMtz/glL+zQunkm983Ydl4vexNfkZrXIIELoiRhfvrXImsURkpdjDXtz8Rhd97 1l/6a/T53V3FaDE4Lt+JUeSxPtRhzbK27HiS0Rt9laav47l6Tn26mihWW0Xxum3Ofvxy rPig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=ogvLTv7LPt3AO9AcgNUUwYPpRAPJe+rC4nANTJ+kE/s=; b=TLLIVIXBxDfFvsKuY4okYRnM0RexnBX2hD1baAiiUh33I/8E1yeULw8fOgxFxaCYsO +WlBQ4BsPtCCEQdSCNSnGYreSw9SaSJPGEGyNI26gq7VJxLKLP4kKXpQanFF3G2UMlkg wW+eIQzbm1eG/+DNk8cCEH/6Jk9DzxBWyG0+ZswFaLhegd5fLV/pkvp1+WoPCDeiNmDF GZY+RiV3vjlzT3E8DWdG7xCR9QvPWIv4xQnXj3E4IwjhGQdqlhLJeGBgviJpuv+s2YyG 1ez63bvbQxuRzyqaq5xjFRMuPnrZPtWK4jdiXn9PG3f4erKiGE8+v2qF8fwnXLJZg1Ci qFTg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JguLK1pW; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id n11-20020ab013cb000000b00359cad9cc49si2651811uae.196.2022.03.28.15.51.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Mar 2022 15:51:05 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JguLK1pW; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 18BBE24A88E; Mon, 28 Mar 2022 14:54:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244894AbiC1R4I (ORCPT + 99 others); Mon, 28 Mar 2022 13:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244883AbiC1R4A (ORCPT ); Mon, 28 Mar 2022 13:56:00 -0400 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D25193F1; Mon, 28 Mar 2022 10:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648490012; x=1680026012; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=6hVE3nZR2DLTvfxhy4j476v0qbisDLvHHSVhVKrRkz4=; b=JguLK1pWQ+WLluq30Ap2AdICvpzyikHecbC4FxSWyaHqoqJMXVU6tuQv jhWFFkirGM2I144H1Islsm9y+Y36JHjymbpVhsWUE4QS2/rNXtjbvdL7J MVh9KUGUT8rwtCcLzKz0XgvxdO1ugOzoQ/JwAKdHwAraz9ViVodyqInce fkTKLQkcm7FSV4DInOzcxAU516YE0fns3YdB4PGqRaVLzMJ71H2D+EZKV NNIyKO3Y5adrbmU7NOzpftsac8SmPWJQMjgZ6OM05ue9pQ3QDlCEP9n7g rm0C+0P0HHQTB4X9NaNujW/ok45BOvoZtQQOi14QvKQ5LkTAvm5LCt5Zc g==; X-IronPort-AV: E=McAfee;i="6200,9189,10300"; a="319767284" X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="319767284" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 10:53:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="553995138" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by fmsmga007.fm.intel.com with ESMTP; 28 Mar 2022 10:53:23 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 28 Mar 2022 10:53:22 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 28 Mar 2022 10:53:22 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Mon, 28 Mar 2022 10:53:22 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.172) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Mon, 28 Mar 2022 10:53:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=llsHT7k06Hc/v1RTjRPBTG24WHOE2Da9qQCgFx1+T8A1Squ6+n0IKRjrITle/RgY4G/45sJy5wW+ZgKwfoQOT8/XNebHVOVmfSZ68o3sENhz/j+M6PXSAzKmo1icp8euBk1SM8DvJLu0CedYHRjhfe3VCEzrF+6pS5sKwHI+7+odVeBW2W0JMNEkU6TskhfOHsvH9Okw+C+sQcz41ixeAQ2QdN0WWSX5zIrHJu8cbq6iKxiuRXMmQ4plnF8Wi9UlcTNrgi2NEWi37aXglU5FRkN4AaOLVyV7BiFDW7DJd9YMQMHlcYqkqa3sq34l2gD5GrJPX2KGUkM85Ch0SzQFuQ== 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=ogvLTv7LPt3AO9AcgNUUwYPpRAPJe+rC4nANTJ+kE/s=; b=MkbB0+ozyeo/jrZB99zfwnTjS0/fuhLU/MWe9N0dLu9OhbkRSdTCEYq9aAmZhCt5kTEy4jEB1oiZG8hXXDlVzb1aq/0U7Q4K8j+qpP3kmezj2W5DDqh/YoX1n7kW96qE/P1jy4mK295TqEAljPTQeEvSe14Qs81giAqJ4KwSMJk91Ay1+M90YrX5+0nCKeYI2qRZibtESWI/N51Wq2NFsu0i65brJ3niN6OO03f05a9RGuJzpIp6cUaxii45cA9aOeixMOEuylO+E2ZbSB6AEPOCZ4eWwabJF6QOyu7Lye2e55i5v0MyBjLTE/HSWc+O7IDhtUjV5RKQ+bBHNVmYrA== 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 Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by MWHPR11MB2062.namprd11.prod.outlook.com (2603:10b6:300:2a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.21; Mon, 28 Mar 2022 17:53:19 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::8441:e1ac:f3ae:12b8]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::8441:e1ac:f3ae:12b8%8]) with mapi id 15.20.5102.023; Mon, 28 Mar 2022 17:53:19 +0000 From: "Keller, Jacob E" To: ivecera , "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 Subject: RE: [PATCH net v2] ice: Fix MAC address setting Thread-Topic: [PATCH net v2] ice: Fix MAC address setting Thread-Index: AQHYQEvWKQE7B4Gt4EeDyRfKN/Jn4KzVGJjQ Date: Mon, 28 Mar 2022 17:53:19 +0000 Message-ID: References: <20220325132524.1765342-1-ivecera@redhat.com> In-Reply-To: <20220325132524.1765342-1-ivecera@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0f423707-53ac-4be0-2c2e-08da10e3d81e x-ms-traffictypediagnostic: MWHPR11MB2062:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XHl6HuCLpqeof+TPzJWi5rRJrO4RtkjO/2iYxh7F5coWVcd+eckVBH2Eh647xugS9xk0MPauuhuvYad4ko8N7Lni8bV0dOV60D9XCzJ7EIz6WLYoiDUdmilBHywq2SCwp+287iOW148sVwAZOsWRA7U7DeOBpTYmCvcQjMh63PLDLjHCbNi1w+hhwPhDWpmNgE7egFshKice16HS+5yJI8foBK7QdBxLaphmhNZxy2DtSfLl4mYLyAlMjmGCR1x0dPsMj2IxqumE3FKSlO4m+ZZZ7NeRAP1dmKo2je+0DbdZZb2P03z79TaGiJEPfVWFsOW3hb2nVBxTEeFVRBcuWiC2baVh2FHIssdV8/XozSBG6jCKsABVcZhe4aNOXYUUwzG38LrWMvHtiPbe3+4vinVMUFck1kDAsD+i2uXKph8+dK4PbF4CJSv6n1zeiSfYtSTKhBB4chIxRnB/WFQsaG+xIC2apIQoE4dyFza597X0mKioKGK+Zb8yw7lyuM1V9jD8XCcLn2lrGQlFmRO6j4devGGZFyOu4wy+gWrrOymawexiOMf/d5fnhiHtyP3LbPo0Ogn9hN/IV6TZp+t+XuLjlVAaQP2tFKBtWE/8MAcLm0+Z5IWKowz88GJqzgT0QpPbFrjmIttLbGBVy7m37wK3ZYed926yeiAgj8a2tiBq8hCsntU6SL/SwfedNIzkWf2u9TViuPFjnBJguK24Cg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(4326008)(8676002)(76116006)(508600001)(66946007)(83380400001)(26005)(66476007)(55016003)(2906002)(53546011)(9686003)(64756008)(66556008)(52536014)(86362001)(8936002)(6506007)(33656002)(7696005)(66446008)(186003)(110136005)(71200400001)(5660300002)(54906003)(316002)(122000001)(38100700002)(38070700005)(82960400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?dyKd8rZ4PpzD+Jc/2mJyd7S5nV4Fkrcgmyd0XD/V0bx3UjMP64lWwKES8TLE?= =?us-ascii?Q?u5voF71XLv8wVtGblKswq/QHkjkFZ8ZdpfM4l8lx9PIRQ4/M2u81l6UMOy+i?= =?us-ascii?Q?a9seQN6INxev/Y1N96mL+ts4JhQsGXNVQZUDjss2aAzRBbavLhpCwY8KL0TQ?= =?us-ascii?Q?Rr8Q7xanfdyIrR0JcHKKvOY5R8hgmoZbhy2nzzbYk4ty6J2uPFOOkbAxwn7f?= =?us-ascii?Q?dg5fe1ofbeW4vQMC0TRj/VNZaRF2GA9y5USiZTJCQ5qsYLIev1J890KZ+rKV?= =?us-ascii?Q?/DAkn7zN/QPwkZziQoyqlaK+sLt/Z/PDO4Ih4h+VuEhvlKVO54Zop+GyVpdB?= =?us-ascii?Q?R7jlebsKW5RJlbJdWWTcDysWTAgbg/dVxaqNUPJwSIFj5nCrDkeUkJ83f5oH?= =?us-ascii?Q?xv19QLS02xbVLnZaTHLUDvrR6439xM87NJw7Ndbxbw/2Q8ouEpUcmaHT0kXs?= =?us-ascii?Q?2dVvUJYbJQNnvvSE4pBQHBLmpA2JQ+4gdEpOx4azo6xCfDRD8mPEcD+2d4Zq?= =?us-ascii?Q?Q9VR9F9Mea0cST7fb+XusundGza7dJtIuBYZFmHGmRqHbxfCCkdfb0snyHTE?= =?us-ascii?Q?SSFtMkwEYii7N88dyTWDbh2EFywvNApn87/1/iXSJ6VA9IW3iLGAqLlhP9EH?= =?us-ascii?Q?o+dRRffdibLc0+k1uR1nfEEWdtSH2elBmOhd5O1ilH7klG21jA9ranogQx+2?= =?us-ascii?Q?3jzyTmiXWMfd4hwSqdvELwltNO5A/CHMrG6kzh6h0sG2A37htgUKJmrABAp9?= =?us-ascii?Q?Fts1yS0lDWq5aUqiD+xuPsCIUK6QyIj7tHfN2I8Om9cuYv2zgh1uTH6WxtzP?= =?us-ascii?Q?d5h2o9/iBQn/p6xSuorL1hKVN0PhJkFmMk4kxrjlzgnYmngsu8xkYt+0sB3x?= =?us-ascii?Q?V15eWyUU88Fxrb1Oqt59LV6GM1VF1/VFhjiSizmpujkeZQk4qzLx8OPGO7LK?= =?us-ascii?Q?W47kYQ3xgkc/qVSEa7BqPCAFSS8YCHggd8/9szr/82tufdACtu6DacAxT2bh?= =?us-ascii?Q?Ne9OWc/aAOJ3hWEF59Mdi3MBcQnClgc1QFl3YGlYNExU+faCQvDKSuhjhSU7?= =?us-ascii?Q?hK7gcpeDPMSQUbah5tdviqnHDO3/fMkaYlom8+sbzMfOqb9nYW4SYBtEfGkl?= =?us-ascii?Q?baiqYk4ovNNqs2GR2um75y7IfxJF9KB1Qj3nNP62jRM8fZnkF4DVL8C+TN+C?= =?us-ascii?Q?W4uvqAOUfCCQ4yiuXx+LVyMFcSGvn3lEoIHeLQlhEds5EhuxQ3xZF8IvWNsi?= =?us-ascii?Q?r4m1/CPiOrGdRVPtB4a1s4Zlcx+6Y5PAOfguow54I1nwDkmoWv8f+jyXe2TO?= =?us-ascii?Q?3ZGw3BlFUYHr8kSoFogu7kUxQ3OiTx67AZ9UmwEHnht2OksPhoqwDhh1hLdh?= =?us-ascii?Q?WkqaPE7t6I8Z5HZ3ZqRAfAsyC1dg8HPifkoXADI2cPtwxAX8Dp7+QYRzsAof?= =?us-ascii?Q?xAwZfr7jmq+m+dOmBSO/ltL5r9rFnw9jBV5ymV/9DpcQtVBoiBetKGqGCPs7?= =?us-ascii?Q?TGPVDBCAje0S/9lqpzA2GtnsdlGXDUXZoHnvyu9Qgo/HiycfXhJY7NgWVktG?= =?us-ascii?Q?wwTrP8kx/+IKTzPW9sFMtGVT2inF2btEfHb57QZlpoa1VyIMdr33urK6+vHX?= =?us-ascii?Q?4iu4nGSwkwS4x0DC4oUIaUGPrpHlirEE43zPXh6lLnw924FbjPm+ATSmxABK?= =?us-ascii?Q?1qeBsS5DIXbngMlUQPDx+WGFvWYHiMH035yi1Y0qrirWq3bA4avEw9KfIHBH?= =?us-ascii?Q?hIcPOMOGBg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f423707-53ac-4be0-2c2e-08da10e3d81e X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2022 17:53:19.4417 (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: s6eP65fEiSnuZWsBuiz19RmzGafI3GSv0J+7fvBRmQQBBCNje7SfE9YwhoQ2DhevzRQLcriu9+Ll/aC1xdFAAnYQ68/AGCw2vBncJ2gj/Kk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB2062 X-OriginatorOrg: intel.com 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 > -----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 ; Jaku= b > Kicinski ; Paolo Abeni ; moderated > list:INTEL ETHERNET DRIVERS ; open list= kernel@vger.kernel.org> > Subject: [PATCH net v2] ice: Fix MAC address setting >=20 > 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. >=20 > 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. >=20 > Fix the problem by reset 'err' to zero when ice_fltr_add_mac() > returns -EEXIST. >=20 > 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 > drivers/net/ethernet/intel/ice/ice_main.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/ethernet/intel/ice/ice_main.c > b/drivers/net/ethernet/intel/ice/ice_main.c > index b588d7995631..d755ce07869f 100644 > --- a/drivers/net/ethernet/intel/ice/ice_main.c > +++ b/drivers/net/ethernet/intel/ice/ice_main.c > @@ -5475,16 +5475,19 @@ static int ice_set_mac_address(struct net_device > *netdev, void *pi) >=20 > /* Add filter for new MAC. If filter exists, return success */ > err =3D ice_fltr_add_mac(vsi, mac, ICE_FWD_TO_VSI); > - if (err =3D=3D -EEXIST) > + if (err =3D=3D -EEXIST) { > /* Although this MAC filter is already present in hardware it's > * possible in some cases (e.g. bonding) that dev_addr was > * modified outside of the driver and needs to be restored back > * to this value. > */ > netdev_dbg(netdev, "filter for MAC %pM already exists\n", mac); > - else if (err) > + > + return 0; > + } else if (err) { > /* error if the new filter addition failed */ > err =3D -EADDRNOTAVAIL; > + } >=20 > err_update_filters: > if (err) { > -- > 2.34.1