RDMA/core: Rate limit MAD error messages
authorParav Pandit <parav@mellanox.com>
Tue, 28 Aug 2018 11:45:31 +0000 (14:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 16:59:48 +0000 (17:59 +0100)
commitc0e762da6b0ddaf9437e955faa28712a6f7df283
treef51ed18cd908218e1edece6b5777dab4b1503eb9
parente30fb85862cd4f4cde55b9212a73297446d652e4
RDMA/core: Rate limit MAD error messages

[ Upstream commit f9d08f1e1939ad4d92e38bd3dee6842512f5bee6 ]

While registering a mad agent, a user space can trigger various errors
and flood the logs.

Therefore, decrease verbosity and rate limit such error messages.
While we are at it, use __func__ to print function name.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/core/mad.c