From 920bdbf1bde39882d97118feb46892746db42078 Mon Sep 17 00:00:00 2001 From: Steve Yang Date: Wed, 19 May 2021 03:27:45 +0000 Subject: [PATCH] net/i40e: fix raw packet flow director When user configured the flow rule with raw packet via command "flow_director_filter", it would reset all previous fdir input set flags with "i40e_flow_set_fdir_inset()". Ignore to configure the flow input set with raw packet rule used. Fixes: ff04964ea6d5 ("net/i40e: fix flow director for common pctypes") Cc: stable@dpdk.org Signed-off-by: Steve Yang Acked-by: Beilei Xing --- drivers/net/i40e/i40e_fdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c index ac0e09bfdd..3c7cf1ba90 100644 --- a/drivers/net/i40e/i40e_fdir.c +++ b/drivers/net/i40e/i40e_fdir.c @@ -1768,7 +1768,8 @@ i40e_flow_add_del_fdir_filter(struct rte_eth_dev *dev, if (add) { /* configure the input set for common PCTYPEs*/ - if (!filter->input.flow_ext.customized_pctype) { + if (!filter->input.flow_ext.customized_pctype && + !filter->input.flow_ext.pkt_template) { ret = i40e_flow_set_fdir_inset(pf, pctype, filter->input.flow_ext.input_set); if (ret < 0) -- 2.20.1