]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: Fix VF MAC removal
authorShahed Shaikh <Shahed.Shaikh@qlogic.com>
Thu, 25 Jun 2015 12:19:25 +0000 (15:19 +0300)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:01:50 +0000 (18:01 -0400)
Orabug: 22066196

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>
(cherry picked from commit bb9e9c1d2093135f55bf72697498b3eb6137b66b)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

index 5cffc48a8a8d10184dfa0170d8264f63ffcecb04..9bd08c3ca19d9bfda709615b75b1631828abe191 100644 (file)
@@ -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);
        }
 }