devlink: add explicitly locked flavor of the rate node APIs
We'll need an explicitly locked rate node API for netdevsim to switch eswitch mode setting to locked. Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7a1b0b1a55
commit
8879b32a3a
@@ -1490,6 +1490,10 @@ int devl_port_register(struct devlink *devlink,
|
||||
unsigned int port_index);
|
||||
void devl_port_unregister(struct devlink_port *devlink_port);
|
||||
|
||||
int devl_rate_leaf_create(struct devlink_port *port, void *priv);
|
||||
void devl_rate_leaf_destroy(struct devlink_port *devlink_port);
|
||||
void devl_rate_nodes_destroy(struct devlink *devlink);
|
||||
|
||||
struct ib_device;
|
||||
|
||||
struct net *devlink_net(const struct devlink *devlink);
|
||||
|
||||
Reference in New Issue
Block a user