• Ursula Braun's avatar
    qeth: set new mac even if old mac is gone · 7702745b
    Ursula Braun authored
    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: default avatarUrsula Braun <ursula.braun@de.ibm.com>
    Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7702745b
qeth_l2_main.c 35.2 KB