Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3388590rwa; Tue, 23 Aug 2022 04:05:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR6I8tlElWiOkL3cHjYDgWwZShlGVGoJ4HiHwZqODsQfFp9FhIigFL6F1bynK06jkLiZYgz2 X-Received: by 2002:a17:90a:1b2d:b0:1fb:25f2:f8a1 with SMTP id q42-20020a17090a1b2d00b001fb25f2f8a1mr2717508pjq.178.1661252737740; Tue, 23 Aug 2022 04:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661252737; cv=none; d=google.com; s=arc-20160816; b=PWhQjPRBJdyGbvxh9Hc5ReVKYs8HTTRV/gT8SHXOUij0m455y4GpzM7PvCCtRVhw/z gyDKTjFIVyfVcVKlbVEl4PU/R+IDUGpO2bWsuUlBuI7WIbF9JAri9T75Satb9im2iMJ5 alB6M87+bIyKPhDPCWPCnVRXjuY3P59ZlkEjmw435bI5BNojqtep8fR1UzgotuOSz7SQ Uj7YLaYY1UFzXrm2tF1GGBlOChnDqIdRCaCCE0shKFIajlGBRdPuxCodDXdNc3/2h9b/ ImVWl4+e8QllnXp4FCDiD9SBG3o+q3QHABah6Y5EPA+SGS8cPii2Dav1iIFPvhP4Ih7i 1bGA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RiRZrVZGsEpcgXrlj6fqz250nGfMThPMACX8bBCHfpY=; b=o87MVh1xAcPG8REXV1TXrmlrn9g9keWCLGHkjlrVlPvCWZPOX9NxcPYl8WcGq3GfPu gwSiodbki+EWjFk30auXqqjtGwzvi8gaBBr3HCc7O+nN1FKSj1vis1KbHHTfNUjvZyka Gp/GmSncCvVlFVY0ZSMP31yw/rzemTSomuVwNshDEJjGV6fLQY/qKoxlW4OUsxNgDz/s PeEwFS8vArTdSDWiTqI+5Mr9H92MOQDPEBPFNKSjcKVk0MQG3YE/BwPxfd23BNuTDFF0 UMq89mywUvcUmJfaNQB8FkC496ERAifADB6gS1lnpoCKaYQ/s8ai3VvJ9TdgsLNd5Zl/ P/oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BBaFj+cI; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob9-20020a17090b390900b001fb26c534b0si6781211pjb.41.2022.08.23.04.05.24; Tue, 23 Aug 2022 04:05:37 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=BBaFj+cI; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347783AbiHWJGq (ORCPT + 99 others); Tue, 23 Aug 2022 05:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348073AbiHWJFq (ORCPT ); Tue, 23 Aug 2022 05:05:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25D8284EF1; Tue, 23 Aug 2022 01:29:28 -0700 (PDT) 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 497E561490; Tue, 23 Aug 2022 08:27:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F635C433C1; Tue, 23 Aug 2022 08:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243276; bh=1c39BiNd7SQ5EjNVpwpii3C/c76JTx3O9Q0M7TYzoc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BBaFj+cIXSDkWNHY/2k9Ymlg4+jyIAv65YkKRg8ByyV2EMD+PT2/CrGAjg2q8fjUz M4Qra9vUFkhmExxdZ2ZvvpR8ZrZv74QnJU7J4piSRxJt1Upx1t3slXzNsK0M69pGcn YsDHzNBMlxdmJhFnJZWRwDNxJ7AUxG1J/gCippVY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Grzegorz Siwik , Jaroslav Pulchart , Igor Raits , Tony Nguyen , Gurucharan Subject: [PATCH 5.19 225/365] ice: Ignore EEXIST when setting promisc mode Date: Tue, 23 Aug 2022 10:02:06 +0200 Message-Id: <20220823080127.610838708@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Grzegorz Siwik commit 11e551a2efa4481bd4f616ab75374a2710b480e9 upstream. Ignore EEXIST error when setting promiscuous mode. This fix is needed because the driver could set promiscuous mode when it still has not cleared properly. Promiscuous mode could be set only once, so setting it second time will be rejected. Fixes: 5eda8afd6bcc ("ice: Add support for PF/VF promiscuous mode") Signed-off-by: Grzegorz Siwik Link: https://lore.kernel.org/all/CAK8fFZ7m-KR57M_rYX6xZN39K89O=LGooYkKsu6HKt0Bs+x6xQ@mail.gmail.com/ Tested-by: Jaroslav Pulchart Tested-by: Igor Raits Tested-by: Gurucharan (A Contingent worker at Intel) Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/ice/ice_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/ice/ice_switch.c +++ b/drivers/net/ethernet/intel/ice/ice_switch.c @@ -4428,7 +4428,7 @@ ice_set_vlan_vsi_promisc(struct ice_hw * else status = ice_set_vsi_promisc(hw, vsi_handle, promisc_mask, vlan_id); - if (status) + if (status && status != -EEXIST) break; }