diff options
author | 2021-10-26 10:53:52 -0700 | |
---|---|---|
committer | 2021-10-28 12:47:09 +0100 | |
commit | aaaaa1377e7afca758749b302192b719d58234ed (patch) | |
tree | 11982a2d6ae5520a2c41bb2a757c2e2466d0a44f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | media: use eth_hw_addr_set() (diff) | |
download | wireguard-linux-aaaaa1377e7afca758749b302192b719d58234ed.tar.xz wireguard-linux-aaaaa1377e7afca758749b302192b719d58234ed.zip |
firewire: don't write directly to netdev->dev_addr
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.
Prepare fwnet_hwaddr on the stack and use dev_addr_set() to copy
it to netdev->dev_addr. We no longer need to worry about alignment.
union fwnet_hwaddr does not have any padding and we set all fields
so we don't need to zero it upfront.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions