Re: [RFC PATCH net-next 0/3] net: switchdev: extract specific object structures

2015-09-09 Thread Scott Feldman
On Tue, Sep 8, 2015 at 1:47 PM, Vivien Didelot wrote: > Hi! > > Current implementations of .switchdev_port_obj_add and > .switchdev_port_obj_dump > must pass the generic switchdev_obj structure instead of a specific one (e.g. > switchdev_obj_fdb) to the related driver accessors, because it contai

Re: [RFC PATCH net-next 0/3] net: switchdev: extract specific object structures

2015-09-08 Thread Jiri Pirko
Tue, Sep 08, 2015 at 10:47:52PM CEST, vivien.dide...@savoirfairelinux.com wrote: >Hi! > >Current implementations of .switchdev_port_obj_add and .switchdev_port_obj_dump >must pass the generic switchdev_obj structure instead of a specific one (e.g. >switchdev_obj_fdb) to the related driver accessors

[RFC PATCH net-next 0/3] net: switchdev: extract specific object structures

2015-09-08 Thread Vivien Didelot
Hi! Current implementations of .switchdev_port_obj_add and .switchdev_port_obj_dump must pass the generic switchdev_obj structure instead of a specific one (e.g. switchdev_obj_fdb) to the related driver accessors, because it contains the object transaction and callback. This is not very convenient