net/ice: fix flow priority support in non-pipeline mode
authorYuying Zhang <yuying.zhang@intel.com>
Sat, 18 Sep 2021 06:49:30 +0000 (06:49 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 22 Sep 2021 07:31:07 +0000 (09:31 +0200)
commite4a0a7599d974f05665fec3e4c251659f0b11453
treeca4567df2855cbd64c35ba5f8063c1e6db381125
parentcd3b124955d4673fa0ddd423ebc01a5adf9501d4
net/ice: fix flow priority support in non-pipeline mode

Lower values denote higher priority with 0 as the maximum.
The usage of priority in non-pipeline mode is wrong.

This patch fixed this issue in switch filter and added input
validation of priority in FDIR, RSS and ACL filter which
only support one priority level.

Fixes: 2321e34c23b3 ("net/ice: support flow priority for DCF switch filter")
Cc: stable@dpdk.org
Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_acl_filter.c
drivers/net/ice/ice_fdir_filter.c
drivers/net/ice/ice_generic_flow.c
drivers/net/ice/ice_hash.c
drivers/net/ice/ice_switch_filter.c