net/i40e: fix flow director does not work
PATCH 1/1 net/i40e: fix flow director does not work
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.
--- drivers/net/i40e/i40e_fdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/i40e/i40e_fdir.c +2 -1
@@ -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 )
Signature · 1 line
2.27.0
Quoted 36 lines
-----Original Message-----
From: Yang, SteveX <[email protected]>
Sent: Wednesday, May 19, 2021 11:28 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Yang, SteveX <[email protected]>
Subject: [PATCH v1] net/i40e: fix flow director does not workWhen 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")Signed-off-by Steve Yang <[email protected]>--- drivers/net/i40e/i40e_fdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/i40e/i40e_fdir.c index renamed from drivers/net/i40e/i40e_fdir.c +0
-0
ac0e09bfdd..3c7cf1ba90100644drivers/net/i40e/i40e_fdir.c +2
-1@@ -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);
Quoted 3 lines
if (ret < 0)
--
2.27.0
Zhang, Qi Z
AppliedQuoted 39 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Xing, Beilei
Sent: Monday, May 24, 2021 11:33 AM
To: Yang, SteveX <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v1] net/i40e: fix flow director does not workQuoted 29 lines
-----Original Message-----
From: Yang, SteveX <[email protected]>
Sent: Wednesday, May 19, 2021 11:28 AM
To: [email protected]
Cc: Xing, Beilei <[email protected]>; Yang, SteveX <[email protected]>
Subject: [PATCH v1] net/i40e: fix flow director does not workWhen 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")Signed-off-by Steve Yang <[email protected]>--- drivers/net/i40e/i40e_fdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/drivers/net/i40e/i40e_fdir.cindexac0e09bfdd..3c7cf1ba90100644drivers/net/i40e/i40e_fdir.c +0
-0@@ -1768,7 +1768,8 @@ i40e_flow_add_del_fdir_filter(struct rte_eth_dev *dev,
Quoted 12 lines
Quoted 10 lines
drivers/net/i40e/i40e_fdir.c +2
-1if (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.27.0Acked-by Beilei Xing <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
01/06/2021 13:12, Zhang, Qi Z:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
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.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Fixes ff04964ea6d5 ("net/i40e: fix flow director for common pctypes")Signed-off-by Steve Yang <[email protected]>Acked-by Beilei Xing <[email protected]>Applied to dpdk-next-net-intel.
Why Cc:stable is not added?
Quoted 20 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, June 17, 2021 1:23 AM
To: Xing, Beilei <[email protected]>; Yang, SteveX <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH v1] net/i40e: fix flow director does not work01/06/2021 13:12, Zhang, Qi Z:
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
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 commonpctypes")
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Steve Yang <[email protected]>Acked-by Beilei Xing <[email protected]>Applied to dpdk-next-net-intel.
Why Cc:stable is not added?
Yes, the patch need to be backported as the original patch is a fix that need to be backported also, thanks for the capture!