Re: [PATCH net-next v3 2/3] devlink: let kernel allocate region snapshot id

2020-05-01 Thread Jacob Keller
On 4/30/2020 10:57 AM, Jakub Kicinski wrote: > Currently users have to choose a free snapshot id before > calling DEVLINK_CMD_REGION_NEW. This is potentially racy > and inconvenient. > > Make the DEVLINK_ATTR_REGION_SNAPSHOT_ID optional and try > to allocate id automatically. Send a message bac

Re: [PATCH net-next v3 2/3] devlink: let kernel allocate region snapshot id

2020-05-01 Thread Jiri Pirko
Thu, Apr 30, 2020 at 07:57:57PM CEST, k...@kernel.org wrote: >Currently users have to choose a free snapshot id before >calling DEVLINK_CMD_REGION_NEW. This is potentially racy >and inconvenient. > >Make the DEVLINK_ATTR_REGION_SNAPSHOT_ID optional and try >to allocate id automatically. Send a mess

[PATCH net-next v3 2/3] devlink: let kernel allocate region snapshot id

2020-04-30 Thread Jakub Kicinski
Currently users have to choose a free snapshot id before calling DEVLINK_CMD_REGION_NEW. This is potentially racy and inconvenient. Make the DEVLINK_ATTR_REGION_SNAPSHOT_ID optional and try to allocate id automatically. Send a message back to the caller with the snapshot info. Example use: $ devl