net/ice: support drop any and steer all to queue
authorYuying Zhang <yuying.zhang@intel.com>
Wed, 26 Jan 2022 15:57:10 +0000 (15:57 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 9 Feb 2022 02:16:44 +0000 (03:16 +0100)
commit92317961a7319e16131959bb4cad3602ac51eb9e
tree54b974100d9b0d798bf2484fb8c13fff8bb04ef1
parenta62f095049900b8148a739ad0a86fbfc32429326
net/ice: support drop any and steer all to queue

This patch supports drop any and steer all to queue in switch
filter. Support new rte_flow pattern any to handle all packets.
The usage is listed below.

1. drop any:
flow create 0 ingress pattern any / end actions drop / end
All packets received in port 0 will be dropped.

2. steer all to queue:
flow create 0 ingress pattern any / end actions queue index 3 / end
All packets received in port 0 will be steered to queue 3.

Signed-off-by: Yuying Zhang <yuying.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
doc/guides/nics/features/ice.ini
drivers/net/ice/ice_generic_flow.c
drivers/net/ice/ice_generic_flow.h
drivers/net/ice/ice_switch_filter.c