Skip to contentSkip to conversation

net/ice: fix the reversed priority of DCF switch rule

PATCH Applied Wenjun Wu 5 participants 5 messages Aug 2, 2021 – Aug 23, 2021 Network drivers

lore
Share & tools
lore

Wenjun Wu

author
#0 lore raw

PATCH 1/1 net/ice: fix the reversed priority of DCF switch rule

This patch fixes the reversed priority of DCF switch rule. Priority 0 and 1 are supported, and priority 0 should be the highest priority.

Fixes 2321e34c23b3 ("net/ice: support flow priority for DCF switch filter")
---
 drivers/net/ice/ice_switch_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_switch_filter.c +1 -1
index eeed386c63..f222cb9cb0 100644
@@ -1572,7 +1572,7 @@ ice_switch_parse_dcf_action(struct ice_dcf_adapter *ad,
 	rule_info->sw_act.src = rule_info->sw_act.vsi_handle;
 	rule_info->sw_act.flag = ICE_FLTR_RX;
 	rule_info->rx = 1;
-	rule_info->priority = priority + 5;
+	rule_info->priority = 6 - priority;
 
 	return 0;
 }
Signature · 1 line
2.25.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Wu, Wenjun1 <[email protected]>
Sent: Monday, August 2, 2021 3:25 PM
To: [email protected]; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>; Zhang, Yuying <[email protected]>
Cc: Wu, Wenjun1 <[email protected]>
Subject: [PATCH v1] net/ice: fix the reversed priority of DCF switch rule

Quoted 6 lines

This patch fixes the reversed priority of DCF switch rule. Priority 0 and 1 are supported, and priority 0 should be the highest priority.

Fixes 2321e34c23b3 ("net/ice: support flow priority for DCF switch filter")

Applied to dpdk-next-net-intel.

Thanks
Qi

#2 lore raw
In reply to Wenjun Wu
Quoted 5 lines · Wenjun Wu

This patch fixes the reversed priority of DCF switch rule. Priority 0 and 1 are supported, and priority 0 should be the highest priority.

Fixes 2321e34c23b3 ("net/ice: support flow priority for DCF switch filter")

I guess 'Cc: [email protected]' tag is needed, will add in next-net. Please check if it is needed next time, './devtools/check-git-log.sh' should help.

@Aaron, @Thomas, Can we add 'check-git-log.sh' checks to the CI?

Thanks,
ferruh

Quoted 19 lines
---
 drivers/net/ice/ice_switch_filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_switch_filter.c +1 -1
index eeed386c63..f222cb9cb0 100644
@@ -1572,7 +1572,7 @@ ice_switch_parse_dcf_action(struct ice_dcf_adapter *ad,
 	rule_info->sw_act.src = rule_info->sw_act.vsi_handle;
 	rule_info->sw_act.flag = ICE_FLTR_RX;
 	rule_info->rx = 1;
-	rule_info->priority = priority + 5;
+	rule_info->priority = 6 - priority;
 
 	return 0;
 }
#3 lore raw

13/08/2021 12:45, Ferruh Yigit:

Quoted 11 lines · Wenjun Wu
Quoted 5 lines

This patch fixes the reversed priority of DCF switch rule. Priority 0 and 1 are supported, and priority 0 should be the highest priority.

Fixes 2321e34c23b3 ("net/ice: support flow priority for DCF switch filter")

I guess 'Cc: [email protected]' tag is needed, will add in next-net. Please check if it is needed next time, './devtools/check-git-log.sh' should help.

@Aaron, @Thomas, Can we add 'check-git-log.sh' checks to the CI?

We need first to fix the rule for the patches touching "common/". There is a patch in progress.

#4 lore raw
Quoted 8 lines · Thomas Monjalon

13/08/2021 12:45, Ferruh Yigit:

Quoted 7 lines · Wenjun Wu
Quoted 5 lines

This patch fixes the reversed priority of DCF switch rule. Priority 0 and 1 are supported, and priority 0 should be the highest priority.

Fixes 2321e34c23b3 ("net/ice: support flow priority for DCF switch filter")
Quoted 7 lines
Quoted 4 lines

I guess 'Cc: [email protected]' tag is needed, will add in next-net. Please check if it is needed next time, './devtools/check-git-log.sh' should help.

@Aaron, @Thomas, Can we add 'check-git-log.sh' checks to the CI?

We need first to fix the rule for the patches touching "common/". There is a patch in progress.

I think it's possible to add - I don't think it will be too much work.