]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Prevent VFs from enabling VLAN promiscuous mode
authorVasundhara Volam <vasundhara.volam@emulex.com>
Fri, 20 Mar 2015 10:28:23 +0000 (06:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 17:25:51 +0000 (13:25 -0400)
commit345a2198f6fa308e6d7c2093f502e354870585e3
tree82b5dccdcaedaddf672841d46e58eb727d0cef86
parentb7d497ca0fcc3c36f62ef14476efaa04586c89a0
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>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c