WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / ethernet / mellanox / mlx5 / core / devlink.h
blobf0de327a59bed7abac842e893bd272c4a9012ed9
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2019, Mellanox Technologies */
4 #ifndef __MLX5_DEVLINK_H__
5 #define __MLX5_DEVLINK_H__
7 #include <net/devlink.h>
9 enum mlx5_devlink_param_id {
10 MLX5_DEVLINK_PARAM_ID_BASE = DEVLINK_PARAM_GENERIC_ID_MAX,
11 MLX5_DEVLINK_PARAM_ID_FLOW_STEERING_MODE,
12 MLX5_DEVLINK_PARAM_ID_ESW_LARGE_GROUP_NUM,
15 struct devlink *mlx5_devlink_alloc(void);
16 void mlx5_devlink_free(struct devlink *devlink);
17 int mlx5_devlink_register(struct devlink *devlink, struct device *dev);
18 void mlx5_devlink_unregister(struct devlink *devlink);
20 #endif /* __MLX5_DEVLINK_H__ */