RDMA/qedr: Fix incorrect device rate.
authorSagiv Ozeri <sagiv.ozeri@marvell.com>
Mon, 20 May 2019 09:33:20 +0000 (12:33 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 21 May 2019 18:04:53 +0000 (15:04 -0300)
commit69054666df0a9b4e8331319f98b6b9a88bc3fcc4
tree160609f179eba7aa1f57ab8bb39adfb6804c5f09
parent91f571293e26af3e17e209eed89e2d5777192819
RDMA/qedr: Fix incorrect device rate.

Use the correct enum value introduced in commit 12113a35ada6 ("IB/core:
Add HDR speed enum") Prior to this change a 50Gbps port would show 40Gbps.

This patch also cleaned up the redundant redefiniton of ib speeds for
qedr.

Fixes: 12113a35ada6 ("IB/core: Add HDR speed enum")
Signed-off-by: Sagiv Ozeri <sagiv.ozeri@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qedr/verbs.c