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

qp.h (1926B)


      1/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
      2/*
      3 * Copyright (c) 2013-2020, Mellanox Technologies inc. All rights reserved.
      4 */
      5
      6#ifndef _MLX5_IB_QP_H
      7#define _MLX5_IB_QP_H
      8
      9#include "mlx5_ib.h"
     10
     11int mlx5_init_qp_table(struct mlx5_ib_dev *dev);
     12void mlx5_cleanup_qp_table(struct mlx5_ib_dev *dev);
     13
     14int mlx5_core_create_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *qp,
     15			 u32 *in, int inlen, u32 *out, int outlen);
     16int mlx5_qpc_create_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp,
     17		       u32 *in, int inlen, u32 *out);
     18int mlx5_core_qp_modify(struct mlx5_ib_dev *dev, u16 opcode, u32 opt_param_mask,
     19			void *qpc, struct mlx5_core_qp *qp, u32 *ece);
     20int mlx5_core_destroy_qp(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp);
     21int mlx5_core_destroy_dct(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct);
     22int mlx5_core_qp_query(struct mlx5_ib_dev *dev, struct mlx5_core_qp *qp,
     23		       u32 *out, int outlen);
     24int mlx5_core_dct_query(struct mlx5_ib_dev *dev, struct mlx5_core_dct *dct,
     25			u32 *out, int outlen);
     26
     27int mlx5_core_set_delay_drop(struct mlx5_ib_dev *dev, u32 timeout_usec);
     28
     29int mlx5_core_destroy_rq_tracked(struct mlx5_ib_dev *dev,
     30				 struct mlx5_core_qp *rq);
     31int mlx5_core_create_sq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
     32				struct mlx5_core_qp *sq);
     33void mlx5_core_destroy_sq_tracked(struct mlx5_ib_dev *dev,
     34				  struct mlx5_core_qp *sq);
     35
     36int mlx5_core_create_rq_tracked(struct mlx5_ib_dev *dev, u32 *in, int inlen,
     37				struct mlx5_core_qp *rq);
     38
     39struct mlx5_core_rsc_common *mlx5_core_res_hold(struct mlx5_ib_dev *dev,
     40						int res_num,
     41						enum mlx5_res_type res_type);
     42void mlx5_core_res_put(struct mlx5_core_rsc_common *res);
     43
     44int mlx5_core_xrcd_alloc(struct mlx5_ib_dev *dev, u32 *xrcdn);
     45int mlx5_core_xrcd_dealloc(struct mlx5_ib_dev *dev, u32 xrcdn);
     46int mlx5_ib_qp_set_counter(struct ib_qp *qp, struct rdma_counter *counter);
     47#endif /* _MLX5_IB_QP_H */