From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4E5B8A0C49; Tue, 15 Jun 2021 10:19:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D144C4067A; Tue, 15 Jun 2021 10:19:31 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id BD0F440140 for ; Tue, 15 Jun 2021 10:19:30 +0200 (CEST) IronPort-SDR: UfwZGhCkzN5hynZ2/sPoQkFBTA6GL9QkVcBwHBSSt15WlGPgN+VZaYPugSGiRRWBgMVHKCaWUo LqCaUQEsVYMQ== X-IronPort-AV: E=McAfee;i="6200,9189,10015"; a="193063711" X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="193063711" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2021 01:19:27 -0700 IronPort-SDR: TIwLOAsUr2uHycY8hvjguY4hAE0NzxQxFIJsdywy0B5qEnNGdsM1LF1lz7WXajitugtzqwmt7G 8xN7Lp/p+qQQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,275,1616482800"; d="scan'208";a="554371595" Received: from dpdk-liulingy-1.sh.intel.com ([10.67.118.206]) by fmsmga001.fm.intel.com with ESMTP; 15 Jun 2021 01:19:26 -0700 From: Lingyu Liu To: dev@dpdk.org, qi.z.zhang@intel.com, beilei.xing@intel.com Cc: Lingyu Liu Date: Tue, 15 Jun 2021 14:52:59 +0000 Message-Id: <20210615145259.51859-1-lingyu.liu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v1] net/i40e: clear FDIR SW input set when destroy rules X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When a FDIR rule is destroyed, the corresponding input set needs to be cleared. Signed-off-by: Lingyu Liu --- drivers/net/i40e/i40e_fdir.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c index ac0e09bfdd..e679324c20 100644 --- a/drivers/net/i40e/i40e_fdir.c +++ b/drivers/net/i40e/i40e_fdir.c @@ -1845,6 +1845,10 @@ i40e_flow_add_del_fdir_filter(struct rte_eth_dev *dev, return -EINVAL; } + /* clear input_set flag */ + pf->fdir.input_set[pctype] = 0; + pf->fdir.inset_flag[pctype] = 0; + pf->fdir.flex_mask_flag[pctype] = 0; if (fdir_info->fdir_invalprio == 1) -- 2.25.1