devlink: Perform cleanup of resource_set cb
After adding size validation logic into core cleanup is required. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cc944ead83
commit
4f4bbf7c4e
@@ -234,13 +234,9 @@ struct devlink_dpipe_headers {
|
||||
/**
|
||||
* struct devlink_resource_ops - resource ops
|
||||
* @occ_get: get the occupied size
|
||||
* @size_validate: validate the size of the resource before update, reload
|
||||
* is needed for changes to take place
|
||||
*/
|
||||
struct devlink_resource_ops {
|
||||
u64 (*occ_get)(struct devlink *devlink);
|
||||
int (*size_validate)(struct devlink *devlink, u64 size,
|
||||
struct netlink_ext_ack *extack);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user