From: Leon Romanovsky <leon@kernel.org>
To: Jason Gunthorpe <jgg@nvidia.com>
Cc: Patrisious Haddad <phaddad@nvidia.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
linux-rdma@vger.kernel.org, Mark Zhang <markzhang@nvidia.com>,
netdev@vger.kernel.org, Or Har-Toov <ohartoov@nvidia.com>,
Paolo Abeni <pabeni@redhat.com>,
Saeed Mahameed <saeedm@nvidia.com>
Subject: [PATCH rdma-next 6/6] RDMA/ipoib: Add support for XDR speed in ethtool
Date: Wed, 20 Sep 2023 13:07:45 +0300 [thread overview]
Message-ID: <ca252b79b7114af967de3d65f9a38992d4d87a14.1695204156.git.leon@kernel.org> (raw)
In-Reply-To: <cover.1695204156.git.leon@kernel.org>
From: Patrisious Haddad <phaddad@nvidia.com>
The IBTA specification 1.7 has new speed - XDR, supporting signaling
rate of 200Gb.
Ethtool support of IPoIB driver translates IB speed to signaling rate.
Added translation of XDR IB type to rate of 200Gb Ethernet speed.
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
index 8af99b18d361..7da94fb8d7fa 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
@@ -174,6 +174,8 @@ static inline int ib_speed_enum_to_int(int speed)
return SPEED_50000;
case IB_SPEED_NDR:
return SPEED_100000;
+ case IB_SPEED_XDR:
+ return SPEED_200000;
}
return SPEED_UNKNOWN;
--
2.41.0
next prev parent reply other threads:[~2023-09-20 10:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 10:07 [PATCH rdma-next 0/6] Add 800Gb (XDR) speed support Leon Romanovsky
2023-09-20 10:07 ` [PATCH rdma-next 1/6] IB/core: Add support for XDR link speed Leon Romanovsky
2023-09-20 10:07 ` [PATCH rdma-next 2/6] IB/mlx5: Expose XDR speed through MAD Leon Romanovsky
2023-09-20 10:07 ` [PATCH rdma-next 3/6] IB/mlx5: Add support for 800G_8X lane speed Leon Romanovsky
2023-09-20 10:07 ` [PATCH rdma-next 4/6] IB/mlx5: Rename 400G_8X speed to comply to naming convention Leon Romanovsky
2023-09-20 10:07 ` [PATCH rdma-next 5/6] IB/mlx5: Adjust mlx5 rate mapping to support 800Gb Leon Romanovsky
2023-09-20 10:07 ` Leon Romanovsky [this message]
2023-09-21 20:42 ` [PATCH rdma-next 0/6] Add 800Gb (XDR) speed support Jacob Keller
2023-09-26 9:39 ` Leon Romanovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ca252b79b7114af967de3d65f9a38992d4d87a14.1695204156.git.leon@kernel.org \
--to=leon@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jgg@nvidia.com \
--cc=kuba@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=markzhang@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=ohartoov@nvidia.com \
--cc=pabeni@redhat.com \
--cc=phaddad@nvidia.com \
--cc=saeedm@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).