Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
0002 /* Copyright (c) 2019 Mellanox Technologies. */
0003 
0004 #ifndef __MLX5_RDMA_H__
0005 #define __MLX5_RDMA_H__
0006 
0007 #include "mlx5_core.h"
0008 
0009 #ifdef CONFIG_MLX5_ESWITCH
0010 
0011 void mlx5_rdma_enable_roce(struct mlx5_core_dev *dev);
0012 void mlx5_rdma_disable_roce(struct mlx5_core_dev *dev);
0013 
0014 #else /* CONFIG_MLX5_ESWITCH */
0015 
0016 static inline void mlx5_rdma_enable_roce(struct mlx5_core_dev *dev) {}
0017 static inline void mlx5_rdma_disable_roce(struct mlx5_core_dev *dev) {}
0018 
0019 #endif /* CONFIG_MLX5_ESWITCH */
0020 #endif /* __MLX5_RDMA_H__ */