cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rdma.h (556B)


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