[PATCH v3 4/6] nvme-rdma: use rdma connection reject helper functions
Steve Wise
swise at opengridcomputing.com
Tue Oct 25 09:58:34 PDT 2016
> > +static const char *const nvme_rdma_cm_status_strs[] = {
> > + [NVME_RDMA_CM_INVALID_LEN] = "invalid length",
> > + [NVME_RDMA_CM_INVALID_RECFMT] = "invalid record format",
> > + [NVME_RDMA_CM_INVALID_QID] = "invalid queue id",
> > + [NVME_RDMA_CM_INVALID_HSQSIZE] = "invalid host sq size",
> > + [NVME_RDMA_CM_INVALID_HRQSIZE] = "invalid host rq size",
> > + [NVME_RDMA_CM_NO_RSC] = "resource not found",
> > + [NVME_RDMA_CM_INVALID_IRD] = "invalid ird",
> > + [NVME_RDMA_CM_INVALID_ORD] = "Invalid ord",
> > +};
>
> I think it'd be better to move them to include/linux/nvme-rdma.h
> and use them for logging on the target side too.
>
You want to put this in nvme-rdma.h as-is so the memory for this is allocated in
each .c file that includes it?
More information about the Linux-nvme
mailing list