]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcae5024a104fd06238c3d01ca3cde1f51d7f9798
tree47dfd1682a15284383f8d82bd23a06e94cb845e4
parentee2eec799d572662e966aa62e47649dddd53d5fe
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