RDMA/core: Rate limit MAD error messages
authorParav Pandit <parav@mellanox.com>
Tue, 28 Aug 2018 11:45:31 +0000 (14:45 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 6 Sep 2018 19:35:16 +0000 (13:35 -0600)
commitf9d08f1e1939ad4d92e38bd3dee6842512f5bee6
tree8b18e3a1959abaa18017c33e65a96d7c9a4afe2d
parent142a9c287613560edf5a03c8d142c8b6ebc1995b
RDMA/core: Rate limit MAD error messages

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>
drivers/infiniband/core/mad.c