summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorShahed Shaikh <Shahed.Shaikh@qlogic.com>2015-06-25 15:19:25 +0300
committerDavid S. Miller <davem@davemloft.net>2015-06-25 06:30:35 -0700
commitbb9e9c1d2093135f55bf72697498b3eb6137b66b (patch)
treef8cfc11ec97262407fe5c73e132a4a4a1f545b7a /drivers/net/ethernet
parentad6afbe9578d1fa26680faf78c846bd8c00d1d6e (diff)
downloadop-kernel-dev-bb9e9c1d2093135f55bf72697498b3eb6137b66b.zip
op-kernel-dev-bb9e9c1d2093135f55bf72697498b3eb6137b66b.tar.gz
bnx2x: Fix VF MAC removal
There's a bug in today's driver where VF requests to add/remove MAC filters always reach the Hypervisor as add requests. This prevents the VF from changing its MAC address, as it cannot remove the previously configured MAC and runs out of MAC credits. Signed-off-by: Shahed Shaikh <Shahed.Shaikh@qlogic.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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 9628595..c1033a5 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -8435,7 +8435,7 @@ int bnx2x_set_eth_mac(struct bnx2x *bp, bool set)
BNX2X_ETH_MAC, &ramrod_flags);
} else { /* vf */
return bnx2x_vfpf_config_mac(bp, bp->dev->dev_addr,
- bp->fp->index, true);
+ bp->fp->index, set);
}
}
OpenPOWER on IntegriCloud