RDMA/efa: Rate limit admin queue error prints
authorGal Pressman <galpress@amazon.com>
Thu, 1 Aug 2019 17:14:47 +0000 (20:14 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 5 Aug 2019 16:19:55 +0000 (12:19 -0400)
commitcfa1f5f27c79997926f89df5dd1b4f8c920b9623
tree5e677f5dc3fdcdda4b7cb6e4c5b39314fa0ebb70
parent05bb411ada9508b48044ef5d84dd8bc46cece607
RDMA/efa: Rate limit admin queue error prints

Admin queue error prints should never happen unless something wrong
happened to the device. However, in the unfortunate case that it does,
we should take extra care not to flood the log with error messages.

Reviewed-by: Firas JahJah <firasj@amazon.com>
Reviewed-by: Yossi Leybovich <sleybo@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Link: https://lore.kernel.org/r/20190801171447.54440-3-galpress@amazon.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/efa/efa_com.c
drivers/infiniband/hw/efa/efa_com_cmd.c