Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3025928rwb; Mon, 15 Aug 2022 16:23:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4t2St+XH7wMRgwG3KvrAHwtwRgTaC/fY+cFNXpct3tFEkKuJcnlOCCMn1+LqWTTiDLh9xX X-Received: by 2002:a05:6402:4024:b0:43d:2067:f068 with SMTP id d36-20020a056402402400b0043d2067f068mr16840162eda.258.1660605838031; Mon, 15 Aug 2022 16:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605838; cv=none; d=google.com; s=arc-20160816; b=yp/QIK6LPdSQdvmD8T5uq/+ue/BVMrj2+ciSwrIf0AEqmfEWufeE5OWT5DkCNEw1GN Wvc7d86K/ALqzHlZ43G6zk1rIdGBEVhjlaDvv0WKFb/yQ4WWNbABnDHggo7rWML65zuS QPfbMWCMNfXo2GiWIxER2nnWF+UE7Jl54FailGPwZzlAOnIEH+7dUsHZ4GU8URaU2fn2 vREERQYAS149aG52SInZOnf/bXl8ifiQDwkcbZSjC7v0Vr7cNKMl816961qmUgzdxbxn +GS31LzB1/Qro54yrkrserYyIvtlxXR5SpZM7QPQu0vrLGeRtNaOyQVbBe/EDlSwOQVM 7P3Q== 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=9moiPdrOjDPE0NnfWeACmoJ3eJGysQkFFdvpChkN8/c=; b=x9sx08wF/TWKrxbMkhrwOOCXOQNKxnBY9j6aini+V6CwdDQZ5TIRCJDyOYHv1ca2Jm LbshIraORwq+6QuWVqqHV+ODDJKKwQsuM/Y+Hl5u2iD+Arf9WKz5STptgc/akOuqTtOi p6JlSI5z2bLOJxinFBUVj/TqGJZhZrPIQ6LU5zb0yc2N/3+cxL5xBxjFcsARX9OZFcCv XXdsiuG0bLnUHPOiZvqF2wgN4I+ZEi8vIHhpBP+iJlo0PhNOGr8QT6vgc9xLo0X+Xh1z YyNu9PQackbtKgmsO5SwHkNWlWEBdXLkYTkIqBf6g2977vHewvpt0w5ELX7jYrOpxpDg kp2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PNmdZNE5; 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 ht12-20020a170907608c00b0073836824062si5337153ejc.202.2022.08.15.16.23.32; Mon, 15 Aug 2022 16:23:58 -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=PNmdZNE5; 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 S1347810AbiHOV0T (ORCPT + 99 others); Mon, 15 Aug 2022 17:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346863AbiHOVSJ (ORCPT ); Mon, 15 Aug 2022 17:18:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D843BE5; Mon, 15 Aug 2022 12:21:39 -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 ams.source.kernel.org (Postfix) with ESMTPS id EFFA3B81109; Mon, 15 Aug 2022 19:21:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BF24C433D6; Mon, 15 Aug 2022 19:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591296; bh=UtehnCRzzqBGAbgtNav8NMIRUa9kB+iUG7AiDwD9Uks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PNmdZNE5e+Gjku84IU2lUuV7owsYtL0KDDuYAAbEV7Ks1Ryy5L/bnFExE5ysFJkUC Slf9SxnMem6vHZEpssA9Eno4SsSmTbW1dS7eS/loKRXuZN7zFa0FBxygFRyFUTLlQh XUEEbccdTQN+Q0AarfVt4un/WMV5Sm3AZOB6WbT8= 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.18 0533/1095] net: ice: fix error NETIF_F_HW_VLAN_CTAG_FILTER check in ice_vsi_sync_fltr() Date: Mon, 15 Aug 2022 19:58:52 +0200 Message-Id: <20220815180451.598611436@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 522462f41067..f48938af960c 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -419,7 +419,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