1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2019, Mellanox Technologies */
3 
4 #ifndef __MLX5_DEVLINK_H__
5 #define __MLX5_DEVLINK_H__
6 
7 #include <net/devlink.h>
8 
9 struct devlink *mlx5_devlink_alloc(void);
10 void mlx5_devlink_free(struct devlink *devlink);
11 int mlx5_devlink_register(struct devlink *devlink, struct device *dev);
12 void mlx5_devlink_unregister(struct devlink *devlink);
13 
14 #endif /* __MLX5_DEVLINK_H__ */
15