Re: [RFC PATCH net-next 2/4] net: dsa: export dsa_slave_dev_check

2020-12-18 Thread Florian Fainelli
On 12/18/2020 2:38 PM, Vladimir Oltean wrote: > 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

[RFC PATCH net-next 2/4] net: dsa: export dsa_slave_dev_check

2020-12-18 Thread Vladimir Oltean
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 interfa