diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2018-02-05 16:29:51 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-02-05 10:58:25 -0500 |
commit | 03ecdd2dcf39834ff2b012a8b29168d7076da84a (patch) | |
tree | 5be5cb4b76ac401770101ee171fc9b60e0f81797 | |
parent | 2572cf57d75a7f91835d9a38771e9e76d575d122 (diff) | |
download | linux-03ecdd2dcf39834ff2b012a8b29168d7076da84a.tar.bz2 |
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>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/eq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c index 14d57828945d..7fbed34d2617 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c @@ -51,7 +51,7 @@ enum { enum { MLX5_NUM_SPARE_EQE = 0x80, - MLX5_NUM_ASYNC_EQE = 0x100, + MLX5_NUM_ASYNC_EQE = 0x1000, MLX5_NUM_CMD_EQE = 32, MLX5_NUM_PF_DRAIN = 64, }; |