aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/hw/efa/efa_verbs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/efa/efa_verbs.c b/drivers/infiniband/hw/efa/efa_verbs.c
index 434d60235945..5cd34746e6a6 100644
--- a/drivers/infiniband/hw/efa/efa_verbs.c
+++ b/drivers/infiniband/hw/efa/efa_verbs.c
@@ -282,7 +282,13 @@ static void efa_link_gbps_to_speed_and_width(u16 gbps,
enum ib_port_speed *speed,
enum ib_port_width *width)
{
- if (gbps >= 400) {
+ if (gbps >= 1600) {
+ *width = IB_WIDTH_8X;
+ *speed = IB_SPEED_XDR;
+ } else if (gbps >= 800) {
+ *width = IB_WIDTH_8X;
+ *speed = IB_SPEED_NDR;
+ } else if (gbps >= 400) {
*width = IB_WIDTH_8X;
*speed = IB_SPEED_HDR;
} else if (gbps >= 200) {