diff options
author | Christoph Hellwig | 2016-05-03 18:01:03 +0200 |
---|---|---|
committer | Doug Ledford | 2016-05-12 20:22:54 +0200 |
commit | 0691a286d59183c44b68defd398cb7af0354bd00 (patch) | |
tree | d35b6cce35b776c730c826974d625cd58b8f4011 | |
parent | Merge branches 'mlx5-1' and 'srp-1' into k.o/for-4.7 (diff) | |
download | kernel-qcow2-linux-0691a286d59183c44b68defd398cb7af0354bd00.tar.gz kernel-qcow2-linux-0691a286d59183c44b68defd398cb7af0354bd00.tar.xz kernel-qcow2-linux-0691a286d59183c44b68defd398cb7af0354bd00.zip |
IB/cma: pass the port number to ib_create_qp
The new RW API will need this.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/core/cma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 93ab0ae97208..6ebaf20c4699 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c @@ -800,6 +800,7 @@ int rdma_create_qp(struct rdma_cm_id *id, struct ib_pd *pd, if (id->device != pd->device) return -EINVAL; + qp_init_attr->port_num = id->port_num; qp = ib_create_qp(pd, qp_init_attr); if (IS_ERR(qp)) return PTR_ERR(qp); |