]> git.baikalelectronics.ru Git - kernel.git/commit
usbb: catc: use correct API for MAC addresses
authorOliver Neukum <oneukum@suse.com>
Mon, 25 Oct 2021 14:11:21 +0000 (16:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 14:34:02 +0000 (15:34 +0100)
commit30f6f93b62ac445197d104406fc273e872b5549a
tree0200e313d08b4f12c99c26c3cf53706f5f41d801
parent1d748e653436047c497ee2fbe6dbc6407658de5d
usbb: catc: use correct API for MAC addresses

Commit 0e59850f1b49 ("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.

In the case of catc we need a new temporary buffer to conform
to the rules for DMA coherency. That in turn necessitates
a reworking of error handling in probe().

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/catc.c