nvmf: add support of default subsystem identifier
Change-Id: I607e800fea00c21dfd28c8fee0a981ae59e46a5c Signed-off-by: GangCao <gang.cao@intel.com>
This commit is contained in:
parent
e58e56c9c6
commit
89d10dd80e
@ -239,7 +239,7 @@ spdk_nvmf_rdma_conn_destroy(struct spdk_nvmf_rdma_conn *rdma_conn)
|
|||||||
|
|
||||||
static struct spdk_nvmf_rdma_conn *
|
static struct spdk_nvmf_rdma_conn *
|
||||||
spdk_nvmf_rdma_conn_create(struct rdma_cm_id *id, struct ibv_comp_channel *channel,
|
spdk_nvmf_rdma_conn_create(struct rdma_cm_id *id, struct ibv_comp_channel *channel,
|
||||||
uint16_t max_queue_depth, uint16_t max_rw_depth)
|
uint16_t max_queue_depth, uint16_t max_rw_depth, uint32_t subsystem_id)
|
||||||
{
|
{
|
||||||
struct spdk_nvmf_rdma_conn *rdma_conn;
|
struct spdk_nvmf_rdma_conn *rdma_conn;
|
||||||
struct spdk_nvmf_conn *conn;
|
struct spdk_nvmf_conn *conn;
|
||||||
@ -609,6 +609,7 @@ nvmf_rdma_connect(struct rdma_cm_event *event)
|
|||||||
uint16_t sts = 0;
|
uint16_t sts = 0;
|
||||||
uint16_t max_queue_depth;
|
uint16_t max_queue_depth;
|
||||||
uint16_t max_rw_depth;
|
uint16_t max_rw_depth;
|
||||||
|
uint32_t subsystem_id = 0;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (event->id == NULL) {
|
if (event->id == NULL) {
|
||||||
@ -677,7 +678,7 @@ nvmf_rdma_connect(struct rdma_cm_event *event)
|
|||||||
|
|
||||||
/* Init the NVMf rdma transport connection */
|
/* Init the NVMf rdma transport connection */
|
||||||
rdma_conn = spdk_nvmf_rdma_conn_create(event->id, addr->comp_channel, max_queue_depth,
|
rdma_conn = spdk_nvmf_rdma_conn_create(event->id, addr->comp_channel, max_queue_depth,
|
||||||
max_rw_depth);
|
max_rw_depth, subsystem_id);
|
||||||
if (rdma_conn == NULL) {
|
if (rdma_conn == NULL) {
|
||||||
SPDK_ERRLOG("Error on nvmf connection creation\n");
|
SPDK_ERRLOG("Error on nvmf connection creation\n");
|
||||||
goto err1;
|
goto err1;
|
||||||
|
Loading…
Reference in New Issue
Block a user