net/ice/base: support MPLS ethertype switch filter
authorAlvin Zhang <alvinx.zhang@intel.com>
Tue, 13 Jul 2021 02:35:30 +0000 (10:35 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 16 Jul 2021 08:11:30 +0000 (10:11 +0200)
commit57e383e57f333b5a63046b9355f24376e538ed72
treefceec87fafe0a8d65942c82b35caba63504983dc
parenta02d9d9bae6ed3ad0021af7aee6f6f2241f9dacf
net/ice/base: support MPLS ethertype switch filter

Add MPLS training packet and offsets.
Add check to identify MPLS ethertype filters.

For example:
testpmd> flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 \
         type is 0x8847 / end actions queue index 2 / end

This flow will result in all the matched ingress packets be
forwarded to queue 2.

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/base/ice_switch.c