linux/drivers/s390
Julian Wiedmann 8ec1e247a2 s390/qeth: simplify L3 dev_id logic
The logic that deals with errors from qeth_l3_get_unique_id() is quite
complex: it sets card->unique_id to 0xfffe, additionally flags it as
UNIQUE_ID_NOT_BY_CARD and later takes this flag as cue to not propagate
card->unique_id to dev->dev_id. With dev->dev_id thus holding 0,
addrconf_ifid_eui48() applies its default behaviour.

Get rid of all the special bit masks, and just return the old uid in
case of an error. For the vast majority of cases this will be 0 (and so
we still get the desired default behaviour) - with the rare exception
where qeth_l3_get_unique_id() might have been called earlier but the
initialization then failed at a later point.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-25 12:07:15 -07:00
..
block proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
char compat_ioctl: move tape handling into drivers 2019-10-23 17:23:44 +02:00
cio s390/qdio: extend polling support to multiple queues 2020-03-25 12:07:15 -07:00
crypto s390/pkey/zcrypt: spelling s/crytp/crypt/ 2020-02-17 18:01:57 +01:00
net s390/qeth: simplify L3 dev_id logic 2020-03-25 12:07:15 -07:00
scsi SCSI fixes on 20200229 2020-02-29 09:58:47 -06:00
virtio virtio/s390: fix race on airq_areas[] 2019-07-26 13:36:18 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00