nvme-rdma.h (f26e8817b235d8764363bffcc9cbfc61867371f2) | nvme-rdma.h (3ee80c3d15b61e61611903033df414a0590cfde9) |
---|---|
1/* 2 * Copyright (c) 2015 Mellanox Technologies. All rights reserved. 3 * 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. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 15 unchanged lines hidden (view full) --- 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, 30}; 31 | 1/* 2 * Copyright (c) 2015 Mellanox Technologies. All rights reserved. 3 * 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. 7 * 8 * This program is distributed in the hope it will be useful, but WITHOUT --- 15 unchanged lines hidden (view full) --- 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, 30}; 31 |
32static inline const char *nvme_rdma_cm_msg(enum nvme_rdma_cm_status status) 33{ 34 switch (status) { 35 case NVME_RDMA_CM_INVALID_LEN: 36 return "invalid length"; 37 case NVME_RDMA_CM_INVALID_RECFMT: 38 return "invalid record format"; 39 case NVME_RDMA_CM_INVALID_QID: 40 return "invalid queue ID"; 41 case NVME_RDMA_CM_INVALID_HSQSIZE: 42 return "invalid host SQ size"; 43 case NVME_RDMA_CM_INVALID_HRQSIZE: 44 return "invalid host RQ size"; 45 case NVME_RDMA_CM_NO_RSC: 46 return "resource not found"; 47 case NVME_RDMA_CM_INVALID_IRD: 48 return "invalid IRD"; 49 case NVME_RDMA_CM_INVALID_ORD: 50 return "Invalid ORD"; 51 default: 52 return "unrecognized reason"; 53 } 54} 55 |
|
32/** 33 * struct nvme_rdma_cm_req - rdma connect request 34 * 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 39 */ --- 32 unchanged lines hidden --- | 56/** 57 * struct nvme_rdma_cm_req - rdma connect request 58 * 59 * @recfmt: format of the RDMA Private Data 60 * @qid: queue Identifier for the Admin or I/O Queue 61 * @hrqsize: host receive queue size to be created 62 * @hsqsize: host send queue size to be created 63 */ --- 32 unchanged lines hidden --- |