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)
commit63609c8fac40810b0b14c9512d47b11965cea37f
tree57fe3dcb8ec98639ec79f9432c7815de1e2edea5
parentb117e1e8a86d363fc1ad53df8d2c47884d2c0048
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