mpt fusion: use dev_addr_set()
Commit 406f42fa0d
("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it go through appropriate helpers.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aaaaa1377e
commit
e0b4f1cd36
@ -1350,7 +1350,7 @@ mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum)
|
|||||||
HWaddr[5] = a[0];
|
HWaddr[5] = a[0];
|
||||||
|
|
||||||
dev->addr_len = FC_ALEN;
|
dev->addr_len = FC_ALEN;
|
||||||
memcpy(dev->dev_addr, HWaddr, FC_ALEN);
|
dev_addr_set(dev, HWaddr);
|
||||||
memset(dev->broadcast, 0xff, FC_ALEN);
|
memset(dev->broadcast, 0xff, FC_ALEN);
|
||||||
|
|
||||||
/* The Tx queue is 127 deep on the 909.
|
/* The Tx queue is 127 deep on the 909.
|
||||||
|
Loading…
Reference in New Issue
Block a user