Searched hist:bcacfcbc (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/s390/net/ |
H A D | qeth_l2_main.c | bcacfcbc Thu Apr 19 05:52:09 CDT 2018 Julian Wiedmann <jwi@linux.vnet.ibm.com> s390/qeth: fix MAC address update sequence
When changing the MAC address on a L2 qeth device, current code first unregisters the old address, then registers the new one. If HW rejects the new address (or the IO fails), the device ends up with no operable address at all.
Re-order the code flow so that the old address only gets dropped if the new address was registered successfully. While at it, add logic to catch some corner-cases.
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net> bcacfcbc Thu Apr 19 05:52:09 CDT 2018 Julian Wiedmann <jwi@linux.vnet.ibm.com> s390/qeth: fix MAC address update sequence When changing the MAC address on a L2 qeth device, current code first unregisters the old address, then registers the new one. If HW rejects the new address (or the IO fails), the device ends up with no operable address at all. Re-order the code flow so that the old address only gets dropped if the new address was registered successfully. While at it, add logic to catch some corner-cases. Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|