]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/core: Rate limit GID cache warning messages
authorMaor Gottlieb <maorg@nvidia.com>
Mon, 16 Jun 2025 08:26:21 +0000 (11:26 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 17 Jun 2025 17:14:53 +0000 (14:14 -0300)
commit333e4d79316c9ed5877d7aac8b8ed22efc74e96d
tree7b984625e3a1c3319796975507b7d6b62def114f
parent2c6b640ea08bff1a192bf87fa45246ff1e40767c
RDMA/core: Rate limit GID cache warning messages

The GID cache warning messages can flood the kernel log when there are
multiple failed attempts to add GIDs. This can happen when creating many
virtual interfaces without having enough space for their GIDs in the GID
table.

Change pr_warn to pr_warn_ratelimited to prevent log flooding while still
maintaining visibility of the issue.

Link: https://patch.msgid.link/r/fd45ed4a1078e743f498b234c3ae816610ba1b18.1750062357.git.leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/cache.c