linux/drivers/infiniband/hw/mlx5
Or Har-Toov 2be7729531 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: aaecff5e13 ("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>
2026-09-01 09:28:20 -04:00
..
ah.c RDMA/mlx: Replace response_len with ib_respond_udata() 2026-05-18 04:58:42 -04:00
cmd.c RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cmd.h RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cong.c RDMA/mlx5: Send cong param changes to the resolved port mdev 2026-07-29 07:40:37 -04:00
counters.c RDMA/mlx5: Expose RoCE acceleration counters on all functions 2026-07-27 02:29:02 -04:00
counters.h RDMA/mlx5: Refactor optional counters steering code 2025-07-23 03:38:57 -04:00
cq.c RDMA/mlx5: Use UMEM attribute for CQ doorbell record 2026-05-29 20:19:59 -03:00
data_direct.c RDMA/mlx5: Use strscpy() to copy strings into arrays 2026-06-09 14:57:37 -03:00
data_direct.h RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
devx.c RDMA/umem: Rename ib_umem_get() to ib_umem_get_va() 2026-05-29 20:19:57 -03:00
devx.h RDMA/mlx5: Check enabled UCAPs when creating ucontext 2025-03-09 13:13:02 -04:00
dm.c RDMA: Complete k[z|m|c]alloc-to-k[z|m]alloc_obj conversion 2026-03-02 05:41:24 -05:00
dm.h
dmah.c RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
dmah.h RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
doorbell.c RDMA/mlx5: Use UMEM attribute for CQ doorbell record 2026-05-29 20:19:59 -03:00
fs.c RDMA: Complete k[z|m|c]alloc-to-k[z|m]alloc_obj conversion 2026-03-02 05:41:24 -05:00
fs.h RDMA/mlx5: Add multiple priorities support to RDMA TRANSPORT userspace tables 2025-06-25 04:00:33 -04:00
gsi.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
ib_rep.c net/mlx5: E-Switch, serialize representor lifecycle 2026-05-06 19:03:37 -07:00
ib_rep.h
ib_virt.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig
macsec.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
macsec.h RDMA/mlx5: Handles RoCE MACsec steering rules addition and deletion 2023-08-20 12:35:24 +03:00
mad.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
main.c RDMA/mlx5: Remove warn on missing representor in query_port_speed 2026-09-01 09:28:20 -04:00
Makefile RDMA/mlx5: Add DMAH object support 2025-07-23 01:42:10 -04:00
mem.c RDMA: Move DMA block iterator logic into dedicated files 2026-02-25 08:15:30 -05:00
mlx5_ib.h RDMA/mlx5: Use UMEM attribute for SRQ doorbell record 2026-07-23 08:33:32 -04:00
mr.c RDMA/mlx5: Constify struct ib_frmr_pool_ops and dma_buf_attach_ops 2026-07-20 09:00:39 -04:00
odp.c RDMA/mlx5: replace __get_free_page() with kmalloc() 2026-07-14 08:26:03 -04:00
qos.c RDMA: Complete k[z|m|c]alloc-to-k[z|m]alloc_obj conversion 2026-03-02 05:41:24 -05:00
qp.c RDMA/mlx5: Deprecate latency-sensitive QPs feature 2026-07-27 03:17:32 -04:00
qp.h RDMA/mlx5: Fix AH static rate parsing 2025-02-20 01:43:13 -05:00
qpc.c RDMA/mlx5: Fix UAF in DCT destroy due to race with create 2026-04-29 16:37:11 -03:00
restrack.c RDMA/mlx5: Remove DCT restrack tracking 2026-06-11 16:06:41 -03:00
restrack.h
srq_cmd.c RDMA/mlx5: Fix UAF in SRQ destroy due to race with create 2026-04-29 16:37:11 -03:00
srq.c RDMA/mlx5: Use UMEM attribute for SRQ doorbell record 2026-07-23 08:33:32 -04:00
srq.h
std_types.c RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler 2026-01-27 07:04:18 -05:00
umr.c RDMA/mlx5: Make sure that UMR page is aligned to PAGE_SIZE 2026-07-27 02:22:03 -04:00
umr.h IB/mlx5: Push pdn above mlx5r_umr_update_xlt() 2026-06-08 14:32:43 -03:00
wr.c RDMa/mlx5: Avoid frame overflow warning 2026-07-01 08:33:13 -04:00
wr.h