All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] net/mlx5: increase async EQ to avoid EQ overrun
@ 2018-02-05 14:29 Max Gurtovoy
  2018-02-05 14:29   ` Max Gurtovoy
       [not found] ` <1517840992-29813-1-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Max Gurtovoy @ 2018-02-05 14:29 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA, jgg-VPRAkNaXOzVWk0Htik3J/w,
	sagi-NQWnxTmZq1alnMjI0IkVqw
  Cc: vladimirk-VPRAkNaXOzVWk0Htik3J/w, Max Gurtovoy

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-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 drivers/net/ethernet/mellanox/mlx5/core/eq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c
index e7e7cef..9ce4add 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,
 };
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-02-08 18:58 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 14:29 [PATCH 1/2] net/mlx5: increase async EQ to avoid EQ overrun Max Gurtovoy
2018-02-05 14:29 ` [PATCH 2/2] net/mlx5: fix affinity mask for completion vectors Max Gurtovoy
2018-02-05 14:29   ` Max Gurtovoy
2018-02-05 14:36   ` Sagi Grimberg
     [not found] ` <1517840992-29813-1-git-send-email-maxg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2018-02-05 15:28   ` [PATCH 1/2] net/mlx5: increase async EQ to avoid EQ overrun Sagi Grimberg
2018-02-05 16:02   ` Doug Ledford
     [not found]     ` <1517846530.3936.71.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-02-05 16:10       ` Leon Romanovsky
2018-02-05 18:09   ` Jason Gunthorpe
     [not found]     ` <20180205180904.GB11446-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2018-02-05 23:11       ` Max Gurtovoy
     [not found]         ` <d572b570-0844-e441-19a0-e6804557fb58-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2018-02-05 23:16           ` Jason Gunthorpe
     [not found]             ` <20180205231617.GQ11446-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2018-02-08  5:45               ` Saeed Mahameed
     [not found]                 ` <CALzJLG9QQ_B4xj-E+HtpxUWZhFU9eWeqSNHSaQjf5HH=9TPXTg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-08 16:26                   ` Jason Gunthorpe
     [not found]                     ` <20180208162605.GK9051-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2018-02-08 16:39                       ` Leon Romanovsky
2018-02-08 18:58                       ` Saeed Mahameed

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.