IB/hfi1: Modify logging frequency of DCC errors
authorJakub Byczkowski <jakub.byczkowski@intel.com>
Wed, 8 Feb 2017 13:27:55 +0000 (05:27 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:43 +0000 (09:18 -0500)
commitc27aad00d191e8ba88fe755db53b9f2b8cefc0e9
treeca199d27e0089f4e3edc6acda86a1cad4c2a91f3
parentf9215b5e536b0c598dff4041fc7d6136cd599981
IB/hfi1: Modify logging frequency of DCC errors

Use rate-limit state to limit number of messages logged
to kernel message buffer for DCC errors. Add new macro
dd_dev_info_ratelimited for that propose. Replace all
dd_dev_info calls in handle_dcc_err function with
rate-limited version.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/hfi.h