diff options
author | Christoph Hellwig <hch@lst.de> | 2016-05-03 19:01:03 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-05-12 21:22:54 +0300 |
commit | 0691a286d59183c44b68defd398cb7af0354bd00 (patch) | |
tree | d35b6cce35b776c730c826974d625cd58b8f4011 /drivers/infiniband/core | |
parent | 321aebb880d2bfdf9cff503f57207e930aee6b1d (diff) | |
download | linux-0691a286d59183c44b68defd398cb7af0354bd00.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband/core')
-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); |