[PATCH net-next v3 8/9] net: switchdev: Replace port attr get/set SDO with a notification

Jiri Pirko jiri at resnulli.us
Mon Feb 11 12:39:38 UTC 2019


Mon, Feb 11, 2019 at 12:40:06AM CET, f.fainelli at gmail.com wrote:
>Drop switchdev_ops.switchdev_port_attr_get and _set. Drop the uses of
>this field from all clients, which were migrated to use switchdev
>notification in the previous patches.
>
>Add a new function switchdev_port_attr_notify() that sends the switchdev
>notifications SWITCHDEV_PORT_ATTR_GET and _SET.
>
>Update switchdev_port_attr_get() to dispatch to this new function. Drop
>__switchdev_port_attr_set() and update switchdev_port_attr_set()
>likewise.
>
>Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>

Acked-by: Jiri Pirko <jiri at mellanox.com>


More information about the devel mailing list