dev_addr_list: put the first addr on the tree
authorJakub Kicinski <kuba@kernel.org>
Fri, 19 Nov 2021 14:21:54 +0000 (06:21 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Nov 2021 12:25:57 +0000 (12:25 +0000)
commita387ff8e5ddad4d9e4c8fed54bc99be09d501b78
tree991654f6a57c660fb89f5a35ac4a3fbd420b6ce9
parentd07b26f5bbea9ade34dfd6abea7b3ca056c03cd1
dev_addr_list: put the first addr on the tree

Since all netdev->dev_addr modifications go via dev_addr_mod()
we can put it on the list. When address is change remove it
and add it back.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev_addr_lists.c