net: drivers: get ready for const netdev->dev_addr
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. We will make
netdev->dev_addr a const.
Make sure local references to netdev->dev_addr are constant.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5520fb42a0
commit
8bc7823ed3
@@ -250,7 +250,7 @@ static bool send_sci(const struct macsec_secy *secy)
|
||||
(secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb);
|
||||
}
|
||||
|
||||
static sci_t make_sci(u8 *addr, __be16 port)
|
||||
static sci_t make_sci(const u8 *addr, __be16 port)
|
||||
{
|
||||
sci_t sci;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user