Re: [PATCH net-next 08/13] devlink: don't take instance lock around eswitch mode set

2018-05-22 Thread Jiri Pirko
Tue, May 22, 2018 at 07:12:50AM CEST, jakub.kicin...@netronome.com wrote: >Changing switch mode may want to register and unregister devlink >ports. Therefore similarly to DEVLINK_CMD_PORT_SPLIT/UNSPLIT it >should not take the instance lock. Drivers don't depend on existing >locking since it's a v

[PATCH net-next 08/13] devlink: don't take instance lock around eswitch mode set

2018-05-21 Thread Jakub Kicinski
Changing switch mode may want to register and unregister devlink ports. Therefore similarly to DEVLINK_CMD_PORT_SPLIT/UNSPLIT it should not take the instance lock. Drivers don't depend on existing locking since it's a very recent addition. Signed-off-by: Jakub Kicinski --- CC: j...@resnulli.us