Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH for-next] RDMA/efa: Report 800 and 1600 Gbps link speed
@ 2026-06-08  8:37 Tom Sela
  2026-06-09 19:04 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Sela @ 2026-06-08  8:37 UTC (permalink / raw)
  To: jgg, leon, linux-rdma, mrgolin, tomsela
  Cc: sleybo, matua, gal.pressman, Yonatan Nachum

Add support for reporting 800 Gbps as 8X NDR and 1600 Gbps as 8X XDR
link speeds.

Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Reviewed-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Tom Sela <tomsela@amazon.com>
---
 drivers/infiniband/hw/efa/efa_verbs.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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) {
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH for-next] RDMA/efa: Report 800 and 1600 Gbps link speed
  2026-06-08  8:37 [PATCH for-next] RDMA/efa: Report 800 and 1600 Gbps link speed Tom Sela
@ 2026-06-09 19:04 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2026-06-09 19:04 UTC (permalink / raw)
  To: Tom Sela
  Cc: leon, linux-rdma, mrgolin, sleybo, matua, gal.pressman,
	Yonatan Nachum

On Mon, Jun 08, 2026 at 08:37:36AM +0000, Tom Sela wrote:
> Add support for reporting 800 Gbps as 8X NDR and 1600 Gbps as 8X XDR
> link speeds.
> 
> Reviewed-by: Michael Margolin <mrgolin@amazon.com>
> Reviewed-by: Yonatan Nachum <ynachum@amazon.com>
> Signed-off-by: Tom Sela <tomsela@amazon.com>
> ---
>  drivers/infiniband/hw/efa/efa_verbs.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)

Applied to for-next thanks

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-09 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-08  8:37 [PATCH for-next] RDMA/efa: Report 800 and 1600 Gbps link speed Tom Sela
2026-06-09 19:04 ` Jason Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox