1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2019 Mellanox Technologies. */
4 #ifndef __MLX5_RDMA_H__
5 #define __MLX5_RDMA_H__
9 #ifdef CONFIG_MLX5_ESWITCH
11 void mlx5_rdma_enable_roce(struct mlx5_core_dev
*dev
);
12 void mlx5_rdma_disable_roce(struct mlx5_core_dev
*dev
);
14 #else /* CONFIG_MLX5_ESWITCH */
16 static inline void mlx5_rdma_enable_roce(struct mlx5_core_dev
*dev
) {}
17 static inline void mlx5_rdma_disable_roce(struct mlx5_core_dev
*dev
) {}
19 #endif /* CONFIG_MLX5_ESWITCH */
20 #endif /* __MLX5_RDMA_H__ */