diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-22 22:39:25 +0300 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-22 22:39:25 +0300 |
commit | 685df9c39f70964482a1a5d1742b8cecb2606bb7 (patch) | |
tree | 9047ed67e960bddc994b2bf7a4ecbb8fa0c8ca16 /net/sched | |
parent | 88652bf8ce4b91c49769a2a49c17dc44b85b4fa2 (diff) | |
parent | 7e99e34701728d54ccd0466eccf377a42b9db215 (diff) | |
download | linux-685df9c39f70964482a1a5d1742b8cecb2606bb7.tar.xz |
Merge branch 'net-dsa-turn-arrays-of-ports-into-a-list'
Vivien Didelot says:
====================
The dsa_switch structure represents the physical switch device itself,
and is allocated by the driver. The dsa_switch_tree and dsa_port structures
represent the logical switch fabric (eventually composed of multiple switch
devices) and its ports, and are allocated by the DSA core.
This branch lists the logical ports directly in the fabric which simplifies
the iteration over all ports when assigning the default CPU port or configuring
the D in DSA in drivers like mv88e6xxx.
This also removes the unique dst->cpu_dp pointer and is a first step towards
supporting multiple CPU ports and dropping the DSA_MAX_PORTS limitation.
Because the dsa_port structures are not tied to the dsa_switch structure
anymore, we do not need to provide an helper for the drivers to allocate a
switch structure. Like in many other subsystems, drivers can now embed their
dsa_switch structure as they wish into their private structure. This will
be particularly interesting for the Broadcom drivers which were currently
limited by the dynamically allocated array of DSA ports.
The series implements the list of dsa_port structures, makes use of it,
then drops dst->cpu_dp and the dsa_switch_alloc helper.
====================
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions