]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: introduce dsa_is_upstream_port and dsa_switch_is_upstream_of
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 29 Jun 2021 14:06:48 +0000 (17:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jun 2021 17:46:23 +0000 (10:46 -0700)
commit6bd5d1226c7905ddabf932dbd156d25dac9f067d
tree57fe3dcb8ec98639ec79f9432c7815de1e2edea5
parente5a76beea560418e3f60937d50ad34d3804b080a
net: dsa: introduce dsa_is_upstream_port and dsa_switch_is_upstream_of

In preparation for the new cross-chip notifiers for host addresses,
let's introduce some more topology helpers which we are going to use to
discern switches that are in our path towards the dedicated CPU port
from switches that aren't.

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