ipoib: Make ipoib_warn ratelimited
authorkernel@kyup.com <kernel@kyup.com>
Mon, 8 Aug 2016 14:14:22 +0000 (17:14 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 7 Oct 2016 20:54:33 +0000 (16:54 -0400)
commit32f7451d1c6214169848cfea331e2c9d4067a650
tree47dfd1682a15284383f8d82bd23a06e94cb845e4
parentfb6375d7e6e743fc88a416cbfab89f608ed9ebcb
ipoib: Make ipoib_warn ratelimited

In certain cases it's possible to be flooded by warning messages. To
cope with such situations make the ipoib_warn macro be ratelimited.
To prevent accidental limiting of legitimate, bursty messages make
the limit fairly liberal by allowing up to 100 messages in 10 seconds.

Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib.h