]> git.droids-corp.org - dpdk.git/commit
net/ice: complete VLAN offload capability for DCF
authorAlvin Zhang <alvinx.zhang@intel.com>
Fri, 29 Apr 2022 09:19:58 +0000 (09:19 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 17 May 2022 00:46:19 +0000 (02:46 +0200)
commit9a7980cfdf6786c295ae9fff6a9a363a6ab8015f
treebcc1e248679a15e74c7adf068c30a6b547de972b
parent1a09fa53d8e3fc39a8fd957d814d3390e0801dae
net/ice: complete VLAN offload capability for DCF

The new VLAN virtchnl opcodes introduce new capabilities like VLAN
filtering, stripping and insertion.

The DCF needs to query the VLAN capabilities based on current device
configuration firstly.

DCF is able to configure inner VLAN filter when port VLAN is enabled
base on negotiation; and DCF is able to configure outer VLAN (0x8100)
if port VLAN is disabled to be compatible with legacy mode.

When port VLAN is updated by DCF, the DCF needs to reset to query the
new VLAN capabilities.

Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Signed-off-by: Kevin Liu <kevinx.liu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf.c
drivers/net/ice/ice_dcf.h
drivers/net/ice/ice_dcf_ethdev.c