Re: [PATCH net-next] net: dsa: Utilize dsa_slave_dev_check()

From: Vivien Didelot
Date: Wed Sep 20 2017 - 10:23:16 EST


Hi Florian,

Florian Fainelli <f.fainelli@xxxxxxxxx> writes:

> Instead of open coding the check.
>
> Signed-off-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

If we do need to use it outside one day, we may think about renaming
netdev_uses_dsa() to netdev_is_dsa_master() and renaming
dsa_slave_dev_check() to netdev_is_dsa_slave().

In the meantime, looks good!

Reviewed-by: Vivien Didelot <vivien.didelot@xxxxxxxxxxxxxxxxxxxx>