diff options
| author | Or Har-Toov <ohartoov@nvidia.com> | 2026-08-11 19:25:57 +0300 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-09-01 09:28:20 -0400 |
| commit | 2be77295316c2dff0a33c0dc3a65abdab4ccf796 (patch) | |
| tree | fd5fb6d9c7f06323bdf198721c35aecad3dca83c /tools/perf/scripts/python | |
| parent | 62f0f34fbd2b2d5653d33d3b9d42fdcabb1c0101 (diff) | |
| download | linux-2be77295316c2dff0a33c0dc3a65abdab4ccf796.tar.gz linux-2be77295316c2dff0a33c0dc3a65abdab4ccf796.zip | |
RDMA/mlx5: Remove warn on missing representor in query_port_speed
The representor ib_device's phys_port_cnt is set to the total vport
count when the uplink vport rep loads. Individual port[i].rep entries
are populated only as each VF/SF vport rep registers. A NULL .rep for
a given port index is therefore expected while VF reps are still
loading or haven't been enabled yet.
Tools like ibstat and ibv_devinfo iterate over all ports of all RDMA
devices. Some ports may not have an eswitch representor, causing
repeated dmesg warnings when these tools run without a device argument.
This causes dmesg to be flooded with this message on every ibstat
invocation.
Remove the warning and return -ENODEV when no representor exists for
the queried port.
Fixes: aaecff5e13cd ("RDMA/mlx5: Implement query_port_speed callback")
Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20260811-remove-warn-on-miss-rep-v1-1-eccf399bc6af@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
