DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1] net/i40e: clear FDIR SW input set when destroy rules
@ 2021-06-15 14:52 Lingyu Liu
  2021-06-15  8:36 ` Xing, Beilei
  0 siblings, 1 reply; 2+ messages in thread
From: Lingyu Liu @ 2021-06-15 14:52 UTC (permalink / raw)
  To: dev, qi.z.zhang, beilei.xing; +Cc: Lingyu Liu

When a FDIR rule is destroyed, the corresponding input set needs
to be cleared.

Signed-off-by: Lingyu Liu <lingyu.liu@intel.com>
---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-15  8:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 14:52 [dpdk-dev] [PATCH v1] net/i40e: clear FDIR SW input set when destroy rules Lingyu Liu
2021-06-15  8:36 ` Xing, Beilei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).