]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Fixed incorrect implementation of ndo_set_mac_address
authorJeffrey Huang <huangjw@broadcom.com>
Wed, 2 Dec 2015 06:54:06 +0000 (01:54 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 7 Jul 2016 00:36:34 +0000 (17:36 -0700)
commitcb41225bfb5dc28daab1032587b98702987d6569
tree7667b0a7312ea19496c5bf70bc71c6355ca4a865
parent2172d4041d112e14df2859b89434d39bb6c78940
bnxt_en: Fixed incorrect implementation of ndo_set_mac_address

Orabug: 23221795

The existing ndo_set_mac_address only copies the new MAC addr
and didn't set the new MAC addr to the HW. The correct way is
to delete the existing default MAC filter from HW and add
the new one. Because of RFS filters are also dependent on the
default mac filter l2 context, the driver must go thru
close_nic() to delete the default MAC and RFS filters, then
open_nic() to set the default MAC address to HW.

Signed-off-by: Jeffrey Huang <huangjw@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 1fc2cfd03bbf8f1f8b6b90f0858faba8bd6631c4)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c