aboutsummaryrefslogtreecommitdiff
path: root/net/dsa/dsa_priv.h
diff options
context:
space:
mode:
authorVivien Didelot2017-11-06 16:11:44 -0500
committerDavid S. Miller2017-11-09 09:26:49 +0900
commitf070464cf000131928b2c3fd592efd1946610eea (patch)
treec7367e2105eeee1c71a3744dae6c22c581f19d50 /net/dsa/dsa_priv.h
parent24a9332a58b7f41a0d36c35a2c6897242bffdbc0 (diff)
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/dsa_priv.h')
0 files changed, 0 insertions, 0 deletions