summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorAmrani, Ram <Ram.Amrani@cavium.com>2016-12-26 07:40:58 +0100
committerDoug Ledford <dledford@redhat.com>2017-01-24 21:34:30 +0100
commit097b615965fb1af714fbc2311f68839b1086ebcb (patch)
tree91467ba10cf2c8cafc41e9b78ad0fa9f2f1d0790 /drivers/infiniband
parentRDMA/core: Add the function ib_mtu_int_to_enum (diff)
downloadlinux-097b615965fb1af714fbc2311f68839b1086ebcb.tar.xz
linux-097b615965fb1af714fbc2311f68839b1086ebcb.zip
RDMA/qedr: Fix MTU returned from QP query
MTU value returned from QP query should include overhead. Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/qedr/verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c
index 57c8de208077..84dcd73bd57b 100644
--- a/drivers/infiniband/hw/qedr/verbs.c
+++ b/drivers/infiniband/hw/qedr/verbs.c
@@ -2016,7 +2016,7 @@ int qedr_query_qp(struct ib_qp *ibqp,
qp_attr->qp_state = qedr_get_ibqp_state(params.state);
qp_attr->cur_qp_state = qedr_get_ibqp_state(params.state);
- qp_attr->path_mtu = iboe_get_mtu(params.mtu);
+ qp_attr->path_mtu = ib_mtu_int_to_enum(params.mtu);
qp_attr->path_mig_state = IB_MIG_MIGRATED;
qp_attr->rq_psn = params.rq_psn;
qp_attr->sq_psn = params.sq_psn;