net/ice: fix 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: 2321e34c23
("net/ice: support flow priority for DCF switch filter")
Cc: stable@dpdk.org
Signed-off-by: Wenjun Wu <wenjun1.wu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
parent
319df9f9bf
commit
72908beba9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user