aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/legacy.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-11-06 16:11:44 -0500
committerDavid S. Miller <davem@davemloft.net>2017-11-09 09:26:49 +0900
commitf070464cf000131928b2c3fd592efd1946610eea (patch)
treec7367e2105eeee1c71a3744dae6c22c581f19d50 /net/dsa/legacy.c
parentnet: dsa: constify cpu_dp member of dsa_port (diff)
downloadlinux-dev-f070464cf000131928b2c3fd592efd1946610eea.tar.xz
linux-dev-f070464cf000131928b2c3fd592efd1946610eea.zip
net: dsa: setup and teardown default CPU port
The dsa_dst_parse function called just before dsa_dst_apply does not parse the tree but does only one thing: it assigns the default CPU port to dst->cpu_dp and to each user ports. This patch simplifies this by calling a dsa_tree_setup_default_cpu function at the beginning of dsa_dst_apply directly. A dsa_port_is_user helper is added for convenience. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/legacy.c')
0 files changed, 0 insertions, 0 deletions