bnx2x: Correct logic for pvid configuration.
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Sun, 2 Aug 2015 09:42:41 +0000 (12:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2015 00:18:24 +0000 (17:18 -0700)
commitc46309c7f8e7923a1311fbdf6884a59a5f9954cf
treecfe7696b51e68e29e6fab9a5942834ca094c782c
parent5510b3c2a173921374ec847848fb20b98e1c698a
bnx2x: Correct logic for pvid configuration.

Commit 05cc5a39ddb7 ("bnx2x: add vlan filtering offload") has introduced
an incorrect logic for checking whether pvid should be configured for
a vf, causing the hypervisor driver to send unneeded ramrods for all of
the vfs each time a pvid has changed.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
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_sriov.c