Re: [RFC PATCH v2 12/22] devlink: convert snapshot id getter to return an error

Jiri Pirko
2020-03-02T17:44:21Z

Sat, Feb 15, 2020 at 12:22:11AM CET, jacob.e.keller@intel.com wrote:
>Modify the devlink_snapshot_id_get function to return a signed value,
>enabling reporting an error on failure.
>
>This enables easily refactoring how IDs are generated and kept track of
>in the future. For now, just report ENOSPC once INT_MAX snapshot ids
>have been returned.
>
>Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>

Reviewed-by: Jiri Pirko <jiri@mellanox.com>