Message ID | 1465389066-19119-10-git-send-email-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/nvme/target/rdma.c b/drivers/nvme/target/rdma.c index fccb01d..c184ee5 100644 --- a/drivers/nvme/target/rdma.c +++ b/drivers/nvme/target/rdma.c @@ -1313,6 +1313,15 @@ static int nvmet_rdma_add_port(struct nvmet_port *port) u16 port_in; int ret; + switch (port->disc_addr.adrfam) { + case NVMF_ADDR_FAMILY_IP4: + break; + default: + pr_err("address family %d not supported\n", + port->disc_addr.adrfam); + return -EINVAL; + } + ret = kstrtou16(port->disc_addr.trsvcid, 0, &port_in); if (ret) return ret;