]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Delete secondary unicast MAC addresses during be_close
authorAjit Khaparde <ajit.khaparde@emulex.com>
Mon, 18 Nov 2013 16:44:37 +0000 (10:44 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Nov 2013 21:25:22 +0000 (16:25 -0500)
commite28afab5df1f614d9040ac720f77904de30d8612
tree761eed97529e93635ae7e9fcf9beb7d322f26813
parent4b1871536247097176e7827951f0f1f5847fd2d1
be2net: Delete secondary unicast MAC addresses during be_close

Secondary unicast MAC addresses will get deleted only when the interface is UP.
When the interface is DOWN, though these secondary MAC addresses are unusable
and awaiting to be deleted, cause the firmware to believe that they are being used.
If the user intends to set a MAC address as primary MAC from one of these
secondary MAC addresses, the firmware returns a MAC address Collision error.
Delete these secondary MAC addresses during be_close.

The secondary MAC addresses list will be refreshed during interface open anyway.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c