Re: [PATCH net-next 4/4] net: dsa: use switchdev handle helpers

From: Florian Fainelli
Date: Tue Jun 11 2019 - 19:15:22 EST


On 6/11/19 2:47 PM, Vivien Didelot wrote:
> Get rid of the dsa_slave_switchdev_port_{attr_set,obj}_event functions
> in favor of the switchdev_handle_port_{attr_set,obj_add,obj_del}
> helpers which recurse into the lower devices of the target interface.
>
> This has the benefit of being aware of the operations made on the
> bridge device itself, where orig_dev is the bridge, and dev is the
> slave. This can be used later to configure bridge-wide attributes on
> the hardware switches.
>
> Signed-off-by: Vivien Didelot <vivien.didelot@xxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

Nice cleanup, thanks!
--
Florian