summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_core_mpc.h
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>2018-04-19 12:52:09 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-22 14:42:31 -0400
commitbcacfcbc82b4235d280ed9b067aa4567f4a0c756 (patch)
treed32c15cc4bc8fea3659db08a9d735fb516037591 /drivers/s390/net/qeth_core_mpc.h
parenta936b1ef37ce1e996533878f4b23944f9444dcdf (diff)
downloadlinux-bcacfcbc82b4235d280ed9b067aa4567f4a0c756.tar.gz
linux-bcacfcbc82b4235d280ed9b067aa4567f4a0c756.tar.bz2
linux-bcacfcbc82b4235d280ed9b067aa4567f4a0c756.zip
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>
Diffstat (limited to 'drivers/s390/net/qeth_core_mpc.h')
0 files changed, 0 insertions, 0 deletions