2 * Copyright (c) 2015 Mellanox Technologies. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 #ifndef _LINUX_NVME_RDMA_H
15 #define _LINUX_NVME_RDMA_H
17 enum nvme_rdma_cm_fmt
{
18 NVME_RDMA_CM_FMT_1_0
= 0x0,
21 enum nvme_rdma_cm_status
{
22 NVME_RDMA_CM_INVALID_LEN
= 0x01,
23 NVME_RDMA_CM_INVALID_RECFMT
= 0x02,
24 NVME_RDMA_CM_INVALID_QID
= 0x03,
25 NVME_RDMA_CM_INVALID_HSQSIZE
= 0x04,
26 NVME_RDMA_CM_INVALID_HRQSIZE
= 0x05,
27 NVME_RDMA_CM_NO_RSC
= 0x06,
28 NVME_RDMA_CM_INVALID_IRD
= 0x07,
29 NVME_RDMA_CM_INVALID_ORD
= 0x08,
33 * struct nvme_rdma_cm_req - rdma connect request
35 * @recfmt: format of the RDMA Private Data
36 * @qid: queue Identifier for the Admin or I/O Queue
37 * @hrqsize: host receive queue size to be created
38 * @hsqsize: host send queue size to be created
40 struct nvme_rdma_cm_req
{
49 * struct nvme_rdma_cm_rep - rdma connect reply
51 * @recfmt: format of the RDMA Private Data
52 * @crqsize: controller receive queue size
54 struct nvme_rdma_cm_rep
{
61 * struct nvme_rdma_cm_rej - rdma connect reject
63 * @recfmt: format of the RDMA Private Data
64 * @fsts: error status for the associated connect request
66 struct nvme_rdma_cm_rej
{
71 #endif /* _LINUX_NVME_RDMA_H */