]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: increase async EQ to avoid EQ overrun
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 5 Feb 2018 14:29:51 +0000 (16:29 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 5 Feb 2018 15:58:25 +0000 (10:58 -0500)
commitc22ce27eca3b8ffc626f43a059cf11ffc3e98491
tree5be5cb4b76ac401770101ee171fc9b60e0f81797
parent8971b567dceb12dfb0395a472d3ba05a9d2ac68a
net/mlx5: increase async EQ to avoid EQ overrun

Currently the async EQ has 256 entries only. It might not be big enough
for the SW to handle all the needed pending events. For example, in case
of many QPs (let's say 1024) connected to a SRQ created using NVMeOF target
and the target goes down, the FW will raise 1024 "last WQE reached" events
and may cause EQ overrun. Increase the EQ to more reasonable size, that beyond
it the FW should be able to delay the event and raise it later on using internal
backpressure mechanism.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c