Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3060888rwb; Mon, 15 Aug 2022 17:09:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7mxNGE/S5xQycxpOScikjRAnsGxwL9GXyWsYcOJPyh+ASJX0xkF/g3zFeuXTg1Jw2EHPo8 X-Received: by 2002:aa7:d59a:0:b0:441:ecc9:f33e with SMTP id r26-20020aa7d59a000000b00441ecc9f33emr16916135edq.173.1660608586423; Mon, 15 Aug 2022 17:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660608586; cv=none; d=google.com; s=arc-20160816; b=WfvMQ/nG2zmMtEtejQLhUGalMEFji7g81bmrdBRgUPeTeHoRZcPxpcoYSVzj2MoVO/ iRN81/7uTDzXJjcJs7S/mBALD4S8PWtMn/RCXkNktJoPH01oEKtAf3K71nci6nkzIOp3 /HY7yw1KqDtVh/ghgJgNMwAY6X0gD+8iKOIoSF3vGorNBDsIsVjOxMS453Uui+5HPYUm oh838Xfe6eRbUzuWKdJUYMAldWw0ByOukKITZM8tNh/jDHMqARjcSYKnmxOHDmIO0AyU SEhTzER6ZqkfJJrnnN8iK3kVQfLpSkSgp7hHQPQ9Zx2k7rUsta4Hf6WUd0KA0TngzJ7X u68g== 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=Uu8aoVuQuNRaGlgyMpKN4ZNwpjHWwPzJQoMEQpVt434=; b=RefHOheYY6A6RvuOIml+umrEyCJGvSwLQDoqgmhGizLLuqWVZhfGRNy4pXlg1GlXOs mojXM31qBSf3LVvr4ADMPf1vAU1QPwGQzlGmUIOX2g6GZO03vy3ydUtO8ar1ReMRJB8o 44gPN6IXBsx9q2iH+rmYcPAyklZhpe6UNUnmORz6DH3IHcQsv6Uf854syBmdav9vaIE/ ANl6vSousyFAIf8wXfTWJgiaG90YsqIsV2++7reKtfggLIJ9iSiI5odYybMz6LR0epC8 ATYckx+IRYc3VxOj6fCqoS1jAUdm5ZLlHbZnc00DfdKu1hiQDyezHoYnrXf+T6x7jrv3 HqBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SPlaY8Kq; 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 go35-20020a1709070da300b00734b66a6d0dsi10401569ejc.3.2022.08.15.17.09.17; Mon, 15 Aug 2022 17:09:46 -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=SPlaY8Kq; 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 S1353221AbiHPAFl (ORCPT + 99 others); Mon, 15 Aug 2022 20:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354798AbiHOX5T (ORCPT ); Mon, 15 Aug 2022 19:57:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A6145059; Mon, 15 Aug 2022 13:20:16 -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 30E1460F71; Mon, 15 Aug 2022 20:20:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C339C433C1; Mon, 15 Aug 2022 20:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594815; bh=0k9//eBqNhDq78+Kg1GxWRhLI/u1l1Xl9phB5I/ycWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SPlaY8KqSM5TyE6OLIuX5xSsnYqkV/mPh7sGvBIWK8djuhXsVKhL5C5t9J2SmsBHR /bEv2LMHQsmJWGTQ241JOTNzCEXYd7ie2BYkBr6dHXNDhbZsxXxTCxWv9MIK7i9Z9E pCldi5P+DFuoYFq6zXXZfoQP7KdYMcuzVWTSWF/Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jian Shen , Guangbin Huang , Tony Nguyen , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.19 0567/1157] net: ice: fix error NETIF_F_HW_VLAN_CTAG_FILTER check in ice_vsi_sync_fltr() Date: Mon, 15 Aug 2022 19:58:43 +0200 Message-Id: <20220815180502.295591842@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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: Jian Shen [ Upstream commit 7dc839fe47611e6995f370cae37b9797cf7d2672 ] vsi->current_netdev_flags is used store the current net device flags, not the active netdevice features. So it should use vsi->netdev->featurs, rather than vsi->current_netdev_flags to check NETIF_F_HW_VLAN_CTAG_FILTER. Fixes: 1babaf77f49d ("ice: Advertise 802.1ad VLAN filtering and offloads for PF netdev") Signed-off-by: Jian Shen Signed-off-by: Guangbin Huang Acked-by: Tony Nguyen Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index 9f02b60459f1..bc68dc5c6927 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -433,7 +433,7 @@ static int ice_vsi_sync_fltr(struct ice_vsi *vsi) IFF_PROMISC; goto out_promisc; } - if (vsi->current_netdev_flags & + if (vsi->netdev->features & NETIF_F_HW_VLAN_CTAG_FILTER) vlan_ops->ena_rx_filtering(vsi); } -- 2.35.1