Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3409550rwa; Tue, 23 Aug 2022 04:25:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR4j4XX+NNEKWJBoMqINvDRHXxvntx2rpJOnBURjLSe+vLJKrruPdzgnxDifSfynCGHucRVC X-Received: by 2002:a17:903:2345:b0:172:da79:8545 with SMTP id c5-20020a170903234500b00172da798545mr12889372plh.89.1661253924260; Tue, 23 Aug 2022 04:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253924; cv=none; d=google.com; s=arc-20160816; b=Mlx1+KbfszQUubgl+Jz/tnaplxKmPF4RqEf2jG0wcCUUg/EYroUliKlE5CRsvBYM8D x6hnEBmiQfpVH3R3I1BxpqetI3OxfxkMQYu0Pm20vWHQi1NlaUHD0OkaTynpPq2aqeY8 JDWs94z8hjjdRGi1bXd4yVAEJ33b6drpp1+qWGEIEreurndsykVLm9g4ULd9fAmPkJdo tZ2PsAXWZsxVmjCc/bF2oxZg5otOvJgeGl9aZNg1dE7R5NxKE1CfwbOR3zGHCfZFwawg 65/+/2YzPmvekqfnKtXrBEBubKicejD0ZrVJZY9RSpVof9Hd4MO9kedm5ompHTH40Aey pJfw== 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=CnR/R+3lmqW+aywV9qUDBQAObfkMq++26NJjX+P+uMQ=; b=bdxIUd8g50fyFGbNsH54u0AxXP0vYKa4Mq7NwQixuJyQCP3NnU9NrCuecXGi66ahhZ 5XQylvHxjGFQi9oQXx7fGBL4TATgfyW9KzVw8QERT9A/ANmqm4Qr1rTGv3pOhyZaDTZm 9HVLYA3i7PVxruGMVGOxt0vS2ExPeTBpNdsKIjV1sSTJFefYWha5wnvGWyQVbOdrBqMS MOizca9j8RB8oGDLj2tU1fyLXXwmYWmgWJen/ngWPIx254hB+awu3X9xskejNJuDjlbm 7MTN7z8OuWJOfg2n57GSnEJEB92p/i9hQ4q63TFNqoWjpmE1YbjV7AD4e8KHX6OZEso4 wBQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LhhPioN2; 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 ik30-20020a170902ab1e00b0016ee6e782a0si10036057plb.314.2022.08.23.04.25.13; Tue, 23 Aug 2022 04:25:24 -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=LhhPioN2; 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 S1353333AbiHWKNX (ORCPT + 99 others); Tue, 23 Aug 2022 06:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352736AbiHWKGL (ORCPT ); Tue, 23 Aug 2022 06:06:11 -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 B89D371733; Tue, 23 Aug 2022 01:52:37 -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 443A6611DD; Tue, 23 Aug 2022 08:52:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51D59C433D6; Tue, 23 Aug 2022 08:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244756; bh=0dcqyPKtuvYuqhuGOTA2PfPgKoo20KhKXVF0lcFfqyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LhhPioN2OfD9ppDS5SeXGSJNXVqw8q9e7cEO+kjaX7MGhB3LVhc+KeXTSIISGKrhe ENpbCkhWBLJ7aKy9MqWZTuhZ6B9/x//3hp+KS29rhKr8om9dpTOHF8bR5iEqsbvFq7 wD2euTbKVQ4BYBGso0MSmGH3i2oFL2CwNQHpjElk= 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.15 144/244] ice: Ignore EEXIST when setting promisc mode Date: Tue, 23 Aug 2022 10:25:03 +0200 Message-Id: <20220823080103.979269040@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@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 @@ -2614,7 +2614,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; }