diff mbox series

[rdma-core,6/6] mlx5: Add translation of new IB rates to mlx5 rates

Message ID 1545585297-6677-7-git-send-email-yishaih@mellanox.com (mailing list archive)
State Not Applicable
Headers show
Series verbs: Expose the IBTA port CapabilityMask2 | expand

Commit Message

Yishai Hadas Dec. 23, 2018, 5:14 p.m. UTC
From: Michael Guralnik <michaelgur@mellanox.com>

Add translation of new IB rates added due to 2x and HDR support.

Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
---
 providers/mlx5/verbs.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/providers/mlx5/verbs.c b/providers/mlx5/verbs.c
index 7d4ad33..bab675f 100644
--- a/providers/mlx5/verbs.c
+++ b/providers/mlx5/verbs.c
@@ -2361,6 +2361,10 @@  static const uint8_t ib_to_mlx5_rate_table[] = {
 	15,	/* 100 Gbps to 120 Gbps */
 	0,	/* 200 Gbps to unlimited */
 	0,	/* 300 Gbps to unlimited */
+	9,	/* 28 Gbps to 30 Gbps */
+	13,	/* 50 Gbps to 60 Gbps */
+	0,	/* 400 Gbps to unlimited */
+	0,	/* 600 Gbps to unlimited */
 };
 
 static uint8_t ah_attr_to_mlx5_rate(enum ibv_rate ah_static_rate)