diff options
author | Jiri Pirko | 2019-10-03 11:49:31 +0200 |
---|---|---|
committer | David S. Miller | 2019-10-04 11:10:56 -0700 |
commit | 471f894f106573b0b086d1003ee6172253c67b59 (patch) | |
tree | 0922c88f1a3e67687e73a97d1890266584b41d98 /include/net/devlink.h | |
parent | b7a595577ef3dc9add2b3e6d00869d017306bfbe (diff) |
net: devlink: export devlink net getter
Allow drivers to get net struct for devlink instance.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r-- | include/net/devlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 23e4b65ec9df..5ac2be0f0857 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -771,6 +771,7 @@ static inline struct devlink *netdev_to_devlink(struct net_device *dev) struct ib_device; +struct net *devlink_net(const struct devlink *devlink); struct devlink *devlink_alloc(const struct devlink_ops *ops, size_t priv_size); int devlink_register(struct devlink *devlink, struct device *dev); void devlink_unregister(struct devlink *devlink); |