Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2907027iog; Mon, 27 Jun 2022 05:31:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t1Uh02jZR6G7NfoNknQVyMkzKW1HSbzOkpzF2o2uyoPe3+ELu/qTz2u6/hjK5Ba9CJLtoe X-Received: by 2002:a05:6402:428a:b0:42e:8f7e:1638 with SMTP id g10-20020a056402428a00b0042e8f7e1638mr16240372edc.228.1656333102927; Mon, 27 Jun 2022 05:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333102; cv=none; d=google.com; s=arc-20160816; b=cfO+eqSWfSWhCyJ9JpOv3T2iXExZW8lYhZleDUNzrkmZS8Yi9rerzVBZzIlX+t2lfR oOhg193ie9gJShEHzERXLSRttNY0EZSSXR/pjgv71VEnqyh2tm8DT81xx3By60OJQchp AS2SRIoTcX3lIUEtUbI6cLMgoUPzQnRdJ2y4klYz7c9FkCxHTv9p0iLRYHj8RLTQMbC7 R84y6O/XTZbNGrKxORE6QmW1Bj8Yx+MUh3ZJaPaT7ifMsFyk2EzfWGiSbplablYSVkGo TEr5FsWDmiKmHdVfVUtpsKPVqZL/awSYWDQHxHZzW80OlmxixwJwdSTuwvD9Q+VtoDEh VAIQ== 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=DA4HTW7EtKKqBsHuq9ffjseQPOP0cRgaf/DvW258umQ=; b=uS818+eK56AYmLVYOY01XpG0Yh5DklZAzoFZZyN/hztcTLLGplUA6Ajtr64NZlfsmX 5CZ6twsHHTrJrQi2acC1zXer8RcGlXZ/FiD8MOW7Z7zpnO7PB2+fTJPn+Ve+3WnURwO+ O6S9tzcacdOMNPzcjgc3G1yuewv6fJbz22R18YS0tLW3jaspGIesGFnTEpJhLOCfeyYG 5q+tEoASJ+slKgZU3g3o6ugUhmDTzn89t8OipU8Umpg6nxHWZKj+ZxcrlGhSx1XZGGQj INRWEumH2NJQieKU6sibgaTg2nQpI+rohy/wdiHaNVH4ibKxujH80G5F09gl/CgqDQYM kQHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qbacEoRU; 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 nd26-20020a170907629a00b0072402ea9648si12917210ejc.748.2022.06.27.05.31.18; Mon, 27 Jun 2022 05:31:42 -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=qbacEoRU; 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 S238991AbiF0Lyj (ORCPT + 99 others); Mon, 27 Jun 2022 07:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238489AbiF0Lsb (ORCPT ); Mon, 27 Jun 2022 07:48:31 -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 DDDCABF70; Mon, 27 Jun 2022 04:41:53 -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 74CCD61150; Mon, 27 Jun 2022 11:41:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80AE2C3411D; Mon, 27 Jun 2022 11:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656330112; bh=n9FZEQIgD8MigI+6BcU6gJN+cGDBxUZmCA6J21ivfb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qbacEoRUNtIrWQrekkHBDbZdxuaKx1pGSspR5UxjjSF8/swTKdT2nzdGotihJlX0b XcJhzMjHvDhtJYbI8cBRPpmlTcAJVCCFkgDSqtjeVxmUo/Q1tQzS4tp7wCoy8UCe2L /39GMnHyM2wEDdw9O2iCRQ19ue2NtaMUXlzf0g/8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sridhar Samudrala , Wojciech Drewek , Sandeep Penigalapati , Tony Nguyen , Sasha Levin Subject: [PATCH 5.18 086/181] ice: Fix switchdev rules book keeping Date: Mon, 27 Jun 2022 13:20:59 +0200 Message-Id: <20220627111947.053547619@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111944.553492442@linuxfoundation.org> References: <20220627111944.553492442@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 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: Wojciech Drewek [ Upstream commit 3578dc90013b1fa20da996cdadd8515802716132 ] Adding two filters with same matching criteria ends up with one rule in hardware with act = ICE_FWD_TO_VSI_LIST. In order to remove them properly we have to keep the information about vsi handle which is used in VSI bitmap (ice_adv_fltr_mgmt_list_entry::vsi_list_info::vsi_map). Fixes: 0d08a441fb1a ("ice: ndo_setup_tc implementation for PF") Reported-by: Sridhar Samudrala Signed-off-by: Wojciech Drewek Tested-by: Sandeep Penigalapati Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/ice/ice_tc_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/intel/ice/ice_tc_lib.c b/drivers/net/ethernet/intel/ice/ice_tc_lib.c index 734bfa121e24..2ce2694fcbd7 100644 --- a/drivers/net/ethernet/intel/ice/ice_tc_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_tc_lib.c @@ -524,6 +524,7 @@ ice_eswitch_add_tc_fltr(struct ice_vsi *vsi, struct ice_tc_flower_fltr *fltr) */ fltr->rid = rule_added.rid; fltr->rule_id = rule_added.rule_id; + fltr->dest_id = rule_added.vsi_handle; exit: kfree(list); -- 2.35.1