diff options
author | Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru> | 2016-06-15 18:48:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-16 07:26:26 +0200 |
commit | 34813fe26e173098d70655bc268aef54d3a9e488 (patch) | |
tree | a333dbcef74fdd3ae8d41cf41d573714ef0b50d8 /drivers/net/ethernet/sfc/nic.h | |
parent | sfc: Make EF10 filter management helper functions VLAN-aware (diff) | |
download | linux-34813fe26e173098d70655bc268aef54d3a9e488.tar.xz linux-34813fe26e173098d70655bc268aef54d3a9e488.zip |
sfc: Implement list of VLANs added over interface
Right now it contains dummy VLAN entry with unspecified VID only.
The entry is used for the case when HW VLAN filtering is not used.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
-rw-r--r-- | drivers/net/ethernet/sfc/nic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h index 0b536e27d3b2..96944c3c9d14 100644 --- a/drivers/net/ethernet/sfc/nic.h +++ b/drivers/net/ethernet/sfc/nic.h @@ -519,6 +519,9 @@ enum { #ifdef CONFIG_SFC_SRIOV * @vf: Pointer to VF data structure #endif + * @vport_mac: The MAC address on the vport, only for PFs; VFs will be zero + * @vlan_list: List of VLANs added over the interface. Serialised by vlan_lock. + * @vlan_lock: Lock to serialize access to vlan_list. */ struct efx_ef10_nic_data { struct efx_buffer mcdi_buf; @@ -550,6 +553,8 @@ struct efx_ef10_nic_data { struct ef10_vf *vf; #endif u8 vport_mac[ETH_ALEN]; + struct list_head vlan_list; + struct mutex vlan_lock; }; int efx_init_sriov(void); |