net/ice/base: add interface to support configuring VLAN mode
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 15 Dec 2020 04:00:55 +0000 (12:00 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:06 +0000 (16:03 +0100)
commit4e4dc21e450b5860da650d255abb6e17c3e637a9
treebabd2835ffbc7c6c1965a56743bd0a386822360c
parentff1d3f523ae7af4da3450201bc2b3a763845b2f7
net/ice/base: add interface to support configuring VLAN mode

The VLAN mode of the device has to be configured while the global
configuration lock is held while downloading the DDP, specifically after
the DDP has been downloaded. In order to support this a VLAN mode
interface was added. By default the device will stay in single VLAN
mode (SVM), which is the current implementation. However, this can be
changed by implementing the .set_dvm op.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_adminq_cmd.h
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_common.h
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_type.h
drivers/net/ice/base/ice_vlan_mode.c [new file with mode: 0644]
drivers/net/ice/base/ice_vlan_mode.h [new file with mode: 0644]
drivers/net/ice/base/meson.build