net/ice: support flow priority for DCF switch filter
authorYuying Zhang <yuying.zhang@intel.com>
Thu, 15 Apr 2021 15:38:45 +0000 (15:38 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 16 Apr 2021 10:22:00 +0000 (12:22 +0200)
commit2321e34c23b386c46e4a644682e40214cf59ee4f
treeb90b1f2d6ed5bae147ffc39995f9430d1e2c1bd6
parentb1daa3461429e7674206a714c17adca65e9b44b4
net/ice: support flow priority for DCF switch filter

Support rte flow priority attribute for DCF switch filter.
When a packet is matched by two rules, the behavior of it
is not defined. This patch supports flow priority to create
different recipes for this situation. Only priority 0 and 1
are supported and higher value denotes higher priority.

for example:
1. flow create 0 priority 0 ingress pattern eth / vlan tci is 2 / vlan
   tci is 2 / end actions vf id 2 / end
2. flow create 0 priority 1 ingress pattern eth / vlan / vlan / ipv4 dst
   is 192.168.0.1 / end actions vf id 1 / end

These two rules can be created at the same time in DCF switch
filter and priority of rule 2 is higher. Packet hits rule 2
when two conditions of rules are satisfied.

Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
doc/guides/rel_notes/release_21_05.rst
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_generic_flow.h
drivers/net/ice/ice_hash.c
drivers/net/ice/ice_switch_filter.c