2021-08-23 10:35:30 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
|
2016-01-06 09:56:15 -08:00
|
|
|
/*
|
2016-01-22 13:04:58 -08:00
|
|
|
* Copyright(c) 2016 Intel Corporation.
|
2016-01-06 09:56:15 -08:00
|
|
|
*/
|
|
|
|
|
|
2021-08-23 10:35:30 +08:00
|
|
|
#ifndef DEF_RVTQP_H
|
|
|
|
|
#define DEF_RVTQP_H
|
|
|
|
|
|
2019-04-11 07:16:11 -07:00
|
|
|
#include <rdma/rdmavt_qp.h>
|
2016-01-06 09:56:15 -08:00
|
|
|
|
2016-01-06 10:04:46 -08:00
|
|
|
int rvt_driver_qp_init(struct rvt_dev_info *rdi);
|
|
|
|
|
void rvt_qp_exit(struct rvt_dev_info *rdi);
|
2021-07-23 14:39:50 +03:00
|
|
|
int rvt_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr,
|
|
|
|
|
struct ib_udata *udata);
|
2016-01-06 09:56:15 -08:00
|
|
|
int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
|
|
|
|
int attr_mask, struct ib_udata *udata);
|
2019-03-31 19:10:05 +03:00
|
|
|
int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
|
2016-01-06 09:56:15 -08:00
|
|
|
int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
|
|
|
|
int attr_mask, struct ib_qp_init_attr *init_attr);
|
2018-07-18 09:25:32 -07:00
|
|
|
int rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr,
|
|
|
|
|
const struct ib_recv_wr **bad_wr);
|
|
|
|
|
int rvt_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
|
|
|
|
|
const struct ib_send_wr **bad_wr);
|
|
|
|
|
int rvt_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr,
|
|
|
|
|
const struct ib_recv_wr **bad_wr);
|
2018-09-26 10:44:33 -07:00
|
|
|
int rvt_wss_init(struct rvt_dev_info *rdi);
|
|
|
|
|
void rvt_wss_exit(struct rvt_dev_info *rdi);
|
2019-06-28 14:04:24 -04:00
|
|
|
int rvt_alloc_rq(struct rvt_rq *rq, u32 size, int node,
|
|
|
|
|
struct ib_udata *udata);
|
2016-01-06 09:56:15 -08:00
|
|
|
#endif /* DEF_RVTQP_H */
|