]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Don't allow VFs to become promiscuous
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Sun, 23 Mar 2014 16:12:27 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 01:07:04 +0000 (21:07 -0400)
commitfafb024d0452a67cbc9913f465c4f46260c8cba1
tree0108ec0f57decf70773d3466688c6cc9688952cb
parent5861dc028e99378df4a489bf169c5f6c2668f8ec
bnx2x: Don't allow VFs to become promiscuous

Currently, if a VF's Rx Mode will be configured to support promiscuous mode
the PF will comply, causing the VF to actually become promiscuous.
This will enable the VF to see all unicast traffic which might be intended for
other VMs, which we believe should not be possible.

This patch will cause the hypervisor to ignore the VF's request for changes in
its Rx mode (other than disabling it), preventing it from becoming promiscuous.

Reported-by: Yoann Juet <yoann.juet@univ-nantes.fr>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c