]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 20:07:13 +0000 (15:07 -0500)
commit94c9ebfe4dcde59a961f8904dcfdd87c60c08fd2
tree1743456df131a8705c0aff86c6abbd9495032964
parent2121b24702071833f1abf0acb1e8a93ad4dd9cfe
bnxt_en: Fixed incorrect implementation of ndo_set_mac_address

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c