180f09dfcSMaor Gottlieb /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 280f09dfcSMaor Gottlieb /* Copyright (c) 2019 Mellanox Technologies. */ 380f09dfcSMaor Gottlieb 480f09dfcSMaor Gottlieb #ifndef __MLX5_RDMA_H__ 580f09dfcSMaor Gottlieb #define __MLX5_RDMA_H__ 680f09dfcSMaor Gottlieb 780f09dfcSMaor Gottlieb #include "mlx5_core.h" 880f09dfcSMaor Gottlieb 980f09dfcSMaor Gottlieb #ifdef CONFIG_MLX5_ESWITCH 1080f09dfcSMaor Gottlieb 1180f09dfcSMaor Gottlieb void mlx5_rdma_enable_roce(struct mlx5_core_dev *dev); 1280f09dfcSMaor Gottlieb void mlx5_rdma_disable_roce(struct mlx5_core_dev *dev); 1380f09dfcSMaor Gottlieb 1480f09dfcSMaor Gottlieb #else /* CONFIG_MLX5_ESWITCH */ 1580f09dfcSMaor Gottlieb mlx5_rdma_enable_roce(struct mlx5_core_dev * dev)1680f09dfcSMaor Gottliebstatic inline void mlx5_rdma_enable_roce(struct mlx5_core_dev *dev) {} mlx5_rdma_disable_roce(struct mlx5_core_dev * dev)1780f09dfcSMaor Gottliebstatic inline void mlx5_rdma_disable_roce(struct mlx5_core_dev *dev) {} 1880f09dfcSMaor Gottlieb 1980f09dfcSMaor Gottlieb #endif /* CONFIG_MLX5_ESWITCH */ 2080f09dfcSMaor Gottlieb #endif /* __MLX5_RDMA_H__ */ 21