nvmf: Rename alloc_rdma_reqs and make it public
This is going to be used elsewhere in the code, so name it according to the public naming convention and make it public. Change-Id: I0dcb88e902c5e609fe6acd06ad06743203fcaa60 Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
6bd23031ae
commit
76abc37913
@ -443,8 +443,8 @@ spdk_nvmf_rdma_request_complete(struct spdk_nvmf_conn *conn, struct spdk_nvmf_re
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
alloc_rdma_reqs(struct spdk_nvmf_conn *conn)
|
||||
int
|
||||
spdk_nvmf_rdma_alloc_reqs(struct spdk_nvmf_conn *conn)
|
||||
{
|
||||
struct spdk_nvmf_rdma_request *rdma_req;
|
||||
int i;
|
||||
@ -583,7 +583,7 @@ nvmf_rdma_connect(struct rdma_cm_event *event)
|
||||
STAILQ_INIT(&conn->rdma.rdma_reqs);
|
||||
|
||||
/* Allocate Buffers */
|
||||
rc = alloc_rdma_reqs(conn);
|
||||
rc = spdk_nvmf_rdma_alloc_reqs(conn);
|
||||
if (rc) {
|
||||
SPDK_ERRLOG("Unable to allocate connection RDMA requests\n");
|
||||
goto err1;
|
||||
|
@ -77,6 +77,7 @@ int nvmf_post_rdma_read(struct spdk_nvmf_conn *conn,
|
||||
int spdk_nvmf_rdma_request_complete(struct spdk_nvmf_conn *conn,
|
||||
struct spdk_nvmf_request *req);
|
||||
int nvmf_rdma_init(void);
|
||||
int spdk_nvmf_rdma_alloc_reqs(struct spdk_nvmf_conn *conn);
|
||||
void nvmf_rdma_conn_cleanup(struct spdk_nvmf_conn *conn);
|
||||
|
||||
int nvmf_acceptor_start(void);
|
||||
|
Loading…
Reference in New Issue
Block a user