summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-02-06 01:02:16 +0300
committerJakub Kicinski <kuba@kernel.org>2021-02-07 01:51:50 +0300
commit2527f2e88fbad9873dfebbea6e8e3540128e2661 (patch)
treefbea694cd699fa529d693e82025e057a2544c69c /include/soc
parent2e9f4afadc702d18f19e8c1183b10307e871a1d7 (diff)
downloadlinux-2527f2e88fbad9873dfebbea6e8e3540128e2661.tar.xz
net: mscc: ocelot: set up logical port IDs centrally
The setup of logical port IDs is done in two places: from the inconclusively named ocelot_setup_lag and from ocelot_port_lag_leave, a function that also calls ocelot_setup_lag (which apparently does an incomplete setup of the LAG). To improve this situation, we can rename ocelot_setup_lag into ocelot_setup_logical_port_ids, and drop the "lag" argument. It will now set up the logical port IDs of all switch ports, which may be just slightly more inefficient but more maintainable. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions