]> git.droids-corp.org - dpdk.git/commit
net/i40e: add outer VLAN processing
authorRobin Zhang <robinx.zhang@intel.com>
Fri, 10 Jun 2022 16:29:44 +0000 (16:29 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Thu, 23 Jun 2022 05:49:42 +0000 (07:49 +0200)
commit38e9762be16a8ff210e4c4e83bae8dfe7fb45984
treed063cd7bdd0da078531d5dac920bbb693ee5bb67
parent8eedf416a7243007fe4ad3b4f7f52e174423897b
net/i40e: add outer VLAN processing

Outer VLAN processing is supported after firmware v8.4, kernel driver
also change the default behavior to support this feature. To align with
kernel driver, add support for outer VLAN processing in DPDK.

But it is forbidden for firmware to change the Inner/Outer VLAN
configuration while there are MAC/VLAN filters in the switch table.
Therefore, we need to clear the MAC table before setting config,
and then restore the MAC table after setting.

This will not impact on an old firmware.

Signed-off-by: Robin Zhang <robinx.zhang@intel.com>
Signed-off-by: Kevin Liu <kevinx.liu@intel.com>
Acked-by: Yuying Zhang <yuying.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h