aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/devlink.h
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2020-03-26 11:37:12 -0700
committerDavid S. Miller <davem@davemloft.net>2020-03-26 19:39:26 -0700
commit47a39f6105d360abc8409f31fc36fac3c0925a52 (patch)
treefb9bc73078eff033baa35dca99c8531eb7253d3c /include/net/devlink.h
parentdevlink: add function to take snapshot while locked (diff)
downloadwireguard-linux-47a39f6105d360abc8409f31fc36fac3c0925a52.tar.xz
wireguard-linux-47a39f6105d360abc8409f31fc36fac3c0925a52.zip
devlink: use -ENOSPC to indicate no more room for snapshots
The devlink_region_snapshot_create function returns -ENOMEM when the maximum number of snapshots has been reached. This is confusing because it is not an issue of being out of memory. Change this to use -ENOSPC instead. Reported-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/devlink.h')
0 files changed, 0 insertions, 0 deletions