diff options
author | Vasundhara Volam <vasundhara.volam@emulex.com> | 2015-03-20 06:28:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-20 13:25:51 -0400 |
commit | 435452aa88474fae5a31fd14fca88f0802e66f53 (patch) | |
tree | 82b5dccdcaedaddf672841d46e58eb727d0cef86 /drivers/net/ethernet/emulex/benet/be.h | |
parent | d22e1537181188e5dc8cbc51451832625035bdc2 (diff) | |
download | linux-stable-435452aa88474fae5a31fd14fca88f0802e66f53.tar.gz linux-stable-435452aa88474fae5a31fd14fca88f0802e66f53.tar.bz2 linux-stable-435452aa88474fae5a31fd14fca88f0802e66f53.zip |
be2net: Prevent VFs from enabling VLAN promiscuous mode
Currently, a PF does not restrict its VF interface from enabling vlan
promiscuous mode. This breaks vlan isolation when a vlan
(transparent tagging) is configured on a VF.
This patch fixes this problem by disabling the vlan promisc capability
for VFs.
Reported-by: Yoann Juet <veilletechno-irts@univ-nantes.fr>
Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be.h b/drivers/net/ethernet/emulex/benet/be.h index 27de37aa90af..92eb0c82bb04 100644 --- a/drivers/net/ethernet/emulex/benet/be.h +++ b/drivers/net/ethernet/emulex/benet/be.h @@ -354,6 +354,7 @@ struct be_vf_cfg { u16 vlan_tag; u32 tx_rate; u32 plink_tracking; + u32 privileges; }; enum vf_state { |