mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 12:16:41 +00:00
net: hldc_fr: 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 got through appropriate helpers.
Acked-by: Krzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5f07da89bc
commit
65a4fbbf22
@ -1093,7 +1093,9 @@ static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type)
|
||||
dev->priv_flags &= ~IFF_TX_SKB_SHARING;
|
||||
eth_hw_addr_random(dev);
|
||||
} else {
|
||||
*(__be16 *)dev->dev_addr = htons(dlci);
|
||||
__be16 addr = htons(dlci);
|
||||
|
||||
dev_addr_set(dev, (u8 *)&addr);
|
||||
dlci_to_q922(dev->broadcast, dlci);
|
||||
}
|
||||
dev->netdev_ops = &pvc_ops;
|
||||
|
Loading…
Reference in New Issue
Block a user