Home
last modified time | relevance | path

Searched hist:a5e3c9ba9258dbe55cba0cc3804675c9f1eaa169 (Results 1 – 1 of 1) sorted by relevance

/linux/include/net/
H A Ddsa.hdiff a5e3c9ba9258dbe55cba0cc3804675c9f1eaa169 Thu Jan 07 02:24:01 CET 2021 Vladimir Oltean <vladimir.oltean@nxp.com> net: dsa: export dsa_slave_dev_check

Using the NETDEV_CHANGEUPPER notifications, drivers can be aware when
they are enslaved to e.g. a bridge by calling netif_is_bridge_master().

Export this helper from DSA to get the equivalent functionality of
determining whether the upper interface of a CHANGEUPPER notifier is a
DSA switch interface or not.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>