OSDN Git Service

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)
commit65c563a67755194f56c461891075f5707b8df1ac
treeef99c0130951f227cfe76d28cf95d83ca08ef136
parentd0004a020bb50263de0e3e775c7b7c7a003e0e0c
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