ice: switch: dynamically add VLAN headers to dummy packets
authorMartyna Szapar-Mudlaw <martyna.szapar-mudlaw@intel.com>
Wed, 20 Apr 2022 21:00:49 +0000 (23:00 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 30 Jun 2022 20:53:33 +0000 (13:53 -0700)
commit263957263a0008508b34425dd69722e01e2e4554
tree856b2ffa8357cde89776a2b55c70bad849687a76
parentea71b967a50785fed7129aaf0e7cb201944c01e7
ice: switch: dynamically add VLAN headers to dummy packets

Enable the support of creating all kinds of declared dummy packets
with the VLAN tags by inserting VLAN headers (single VLAN and QinQ
cases) if needed.
Decrease the number of declared dummy packets and increase in the
possible packet's combinations for adding switch rules.

This change enables support of creating filters that match both on
VLAN + tunnels properties in switchdev.

Signed-off-by: Martyna Szapar-Mudlaw <martyna.szapar-mudlaw@intel.com>
Reviewed-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_switch.c