diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-11-07 00:11:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-09 03:26:49 +0300 |
commit | f070464cf000131928b2c3fd592efd1946610eea (patch) | |
tree | c7367e2105eeee1c71a3744dae6c22c581f19d50 /net/dsa/slave.c | |
parent | 24a9332a58b7f41a0d36c35a2c6897242bffdbc0 (diff) | |
download | linux-f070464cf000131928b2c3fd592efd1946610eea.tar.xz |
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/slave.c')
0 files changed, 0 insertions, 0 deletions