]> git.baikalelectronics.ru Git - kernel.git/commit
qeth: set new mac even if old mac is gone
authorUrsula Braun <ursula.braun@de.ibm.com>
Mon, 12 Nov 2012 23:05:17 +0000 (23:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Nov 2012 19:31:21 +0000 (14:31 -0500)
commit639d67fe196d5f91bbed30ee25c401230f952569
treea320039df9eada1b88a5b7bf8ed7bd109c6b289e
parent9a7647b0623da644759ea01d3fadfeeb2982a8a9
qeth: set new mac even if old mac is gone

If the set_mac_address() function of qeth is invoked, qeth deletes
the old mac address first on OSA. Only if deletion returns
successfully the new mac address is set on OSA. Deletion may return
with a return value "MAC not found on OSA". In this case qeth
should continue setting the new mac address.

When the OSA cable is pulled, OSA forgets any set mac address. If
the OSA network interface acts as a slave to a bonding master
interface, bonding can invoke the set_mac_address function for
failover purposes and depends on successful setting of the new mac
address even though the old mac address could no longer be deleted.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_main.c