]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
IB/core: Add query_port_speed verb
authorOr Har-Toov <ohartoov@nvidia.com>
Thu, 18 Dec 2025 15:58:46 +0000 (17:58 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 5 Jan 2026 07:43:05 +0000 (02:43 -0500)
commit51a07ce2fefd061edf4ba552a741c85f07b3e6dd
treede0336218a8a2fb14209f997a38d58e7cf75de82
parentd4adeff26c3e8f1a9bc86d5dfb14f227c9041070
IB/core: Add query_port_speed verb

Add new ibv_query_port_speed() verb to enable applications to query
the effective bandwidth of a port.

This verb is particularly useful when the speed is not a multiplication
of IB speed and width where width is 2^n.

Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/device.c
drivers/infiniband/core/uverbs_std_types_device.c
include/rdma/ib_verbs.h
include/uapi/rdma/ib_user_ioctl_cmds.h