Skip to contentSkip to conversation

net/i40e: fix flow director does not work

PATCH Applied Steve Yang 4 participants 5 messages May 19, 2021 – Jun 17, 2021 Network drivers

lore
Share & tools
lore

Steve Yang

author
#0 lore raw

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.

Fixes ff04964ea6d5 ("net/i40e: fix flow director for common pctypes")
---
 drivers/net/i40e/i40e_fdir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/i40e/i40e_fdir.c +2 -1
index ac0e09bfdd..3c7cf1ba90 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 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.

Fixes ff04964ea6d5 ("net/i40e: fix flow director for common pctypes")
---
 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..3c7cf1ba90 100644

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);
Quoted 3 lines

if (ret < 0)
--
2.27.0

Applied
#2 lore raw
Quoted 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 work

Quoted 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 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.

Fixes ff04964ea6d5 ("net/i40e: fix flow director for common pctypes")
---
 drivers/net/i40e/i40e_fdir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/net/i40e/i40e_fdir.c index
ac0e09bfdd..3c7cf1ba90 100644

drivers/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 -1
 	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.27.0

Applied to dpdk-next-net-intel.

Thanks
Qi

#3 lore raw

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")

Applied to dpdk-next-net-intel.

Why Cc:stable is not added?

#4 lore raw
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 work

01/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 common

pctypes")

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

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!