]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: do not open-code dsa_switch_for_each_port
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 20 Oct 2021 17:49:51 +0000 (20:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Oct 2021 11:44:06 +0000 (12:44 +0100)
commit384ec1215a79654b219e19d339d378c1f44c4505
treeef99c0130951f227cfe76d28cf95d83ca08ef136
parent911bf486e38b6aaf960888337ff1c0306c518ac0
net: dsa: do not open-code dsa_switch_for_each_port

Find the remaining iterators over dst->ports that only filter for the
ports belonging to a certain switch, and replace those with the
dsa_switch_for_each_port helper that we have now.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa2.c