Re: [patch net-next v5 5/8] switchdev: introduce possibility to defer obj_add/del

2015-10-19 Thread Jiri Pirko
Mon, Oct 19, 2015 at 09:55:59AM CEST, sfel...@gmail.com wrote: >On Wed, Oct 14, 2015 at 10:40 AM, Jiri Pirko wrote: >> From: Jiri Pirko >> >> Similar to the attr usecase, the caller knows if he is holding RTNL and is >> in atomic section. So let the called to decide the correct call variant. >> >

Re: [patch net-next v5 5/8] switchdev: introduce possibility to defer obj_add/del

2015-10-19 Thread Scott Feldman
On Wed, Oct 14, 2015 at 10:40 AM, Jiri Pirko wrote: > From: Jiri Pirko > > Similar to the attr usecase, the caller knows if he is holding RTNL and is > in atomic section. So let the called to decide the correct call variant. > > This allows drivers to sleep inside their ops and wait for hw to get

[patch net-next v5 5/8] switchdev: introduce possibility to defer obj_add/del

2015-10-14 Thread Jiri Pirko
From: Jiri Pirko Similar to the attr usecase, the caller knows if he is holding RTNL and is in atomic section. So let the called to decide the correct call variant. This allows drivers to sleep inside their ops and wait for hw to get the operation status. Then the status is propagated into switc