]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: get tree before parsing ports
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 3 Nov 2017 23:05:26 +0000 (19:05 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 13:31:39 +0000 (22:31 +0900)
commitcb1f147d581dd01b3d38c636b2f565daefec4ce8
treef0265eff96eadade960cb7fd4d27f7863f538d18
parent627fc927cf5945fa6a17a6fba084b08603504600
net: dsa: get tree before parsing ports

We will need a reference to the dsa_switch_tree when parsing a CPU port,
so fetch it right after parsing the member and before parsing ports.

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