diff options
author | Vivien Didelot <vivien.didelot@gmail.com> | 2019-10-21 16:51:24 -0400 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-22 12:37:07 -0700 |
commit | da4561cda2ea6240fc61442eeb2acc47e2e0cae3 (patch) | |
tree | dc0c58861bfc4b42552b218e7ff7b3f75422375d /include/net | |
parent | c0b736282ccf6d9450f3bed55a134f2123a7a565 (diff) | |
download | linux-da4561cda2ea6240fc61442eeb2acc47e2e0cae3.tar.gz linux-da4561cda2ea6240fc61442eeb2acc47e2e0cae3.tar.bz2 linux-da4561cda2ea6240fc61442eeb2acc47e2e0cae3.zip |
net: dsa: use ports list to setup default CPU port
Use the new ports list instead of iterating over switches and their
ports when setting up the default CPU port. Unassign it on teardown.
Now that we can iterate over multiple CPU ports, remove dst->cpu_dp.
At the same time, provide a better error message for CPU-less tree.
Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/dsa.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h index bd08bdee8341..f572134eb5de 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -120,11 +120,6 @@ struct dsa_switch_tree { */ struct dsa_platform_data *pd; - /* - * The switch port to which the CPU is attached. - */ - struct dsa_port *cpu_dp; - /* List of switch ports */ struct list_head ports; |