diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-10-26 10:55:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-28 12:47:49 +0100 |
commit | e0b4f1cd36bf43babb444a8417d7cb7740979646 (patch) | |
tree | f949d8928b8d907915a63c205ed24e24c91df93b /drivers/message | |
parent | aaaaa1377e7afca758749b302192b719d58234ed (diff) | |
download | linux-e0b4f1cd36bf43babb444a8417d7cb7740979646.tar.gz linux-e0b4f1cd36bf43babb444a8417d7cb7740979646.tar.bz2 linux-e0b4f1cd36bf43babb444a8417d7cb7740979646.zip |
mpt fusion: use dev_addr_set()
Commit 406f42fa0d3c ("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>
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/mptlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptlan.c b/drivers/message/fusion/mptlan.c index 3261cac762de..acdc257a900e 100644 --- a/drivers/message/fusion/mptlan.c +++ b/drivers/message/fusion/mptlan.c @@ -1350,7 +1350,7 @@ mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum) HWaddr[5] = a[0]; dev->addr_len = FC_ALEN; - memcpy(dev->dev_addr, HWaddr, FC_ALEN); + dev_addr_set(dev, HWaddr); memset(dev->broadcast, 0xff, FC_ALEN); /* The Tx queue is 127 deep on the 909. |