]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: setup a tree when adding a switch to it
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 6 Nov 2017 21:11:52 +0000 (16:11 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Nov 2017 00:26:49 +0000 (09:26 +0900)
commitf8bfbe25bf6786eba5d9c2157853081f6afa20a3
treef23ebf7db31d677798c44573133658aae9510c28
parentec384be24b838ad1057bf86bed506294c5f69683
net: dsa: setup a tree when adding a switch to it

Now that the tree setup is centralized, we can simplify the code a bit
more by setting up or tearing down the tree directly when adding or
removing a switch to/from it.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c