]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/mlx5: Implement query_port_speed callback
authorOr Har-Toov <ohartoov@nvidia.com>
Thu, 18 Dec 2025 15:59:00 +0000 (17:59 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 5 Jan 2026 07:43:17 +0000 (02:43 -0500)
commitaaecff5e13cd98d9a9260bf2ec83ef3a1bda86a6
treec227e18ff1b1ff16078b81750148e59dfca772d8
parent3fd984d5cd8f0df8e79337fbd9283c31dee9ed31
RDMA/mlx5: Implement query_port_speed callback

Implement the query_port_speed callback for mlx5 driver to support
querying effective port bandwidth.

For LAG configurations, query the aggregated speed from the LAG layer
or from the modified vport max_tx_speed.

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/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h