Re: [PATCH v2 net-next 4/6] net: switchdev: pass callback to dump operation

2015-09-30 Thread Jiri Pirko
Tue, Sep 29, 2015 at 06:07:16PM CEST, vivien.dide...@savoirfairelinux.com wrote: >Similar to the notifier_call callback of a notifier_block, change the >function signature of switchdev dump operation to: > >int switchdev_port_obj_dump(struct net_device *dev, >enu

[PATCH v2 net-next 4/6] net: switchdev: pass callback to dump operation

2015-09-29 Thread Vivien Didelot
Similar to the notifier_call callback of a notifier_block, change the function signature of switchdev dump operation to: int switchdev_port_obj_dump(struct net_device *dev, enum switchdev_obj_id id, void *obj, int (*cb)(void *obj)