From 21e59432dfe0dc9bbcaec3d9d80c372834d6264b Mon Sep 17 00:00:00 2001 From: Viacheslav Ovsiienko Date: Thu, 20 Feb 2020 21:18:33 +0000 Subject: [PATCH] net/mlx5: fix inline packet size for ConnectX-4 Lx This patch does extra inline packet size check to tune the ConnectX-4 Lx performance in the legacy Multi-Packet Write mode. Fixes: 7593cf1d3500 ("net/mlx5: fix legacy multi-packet write session") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad --- drivers/net/mlx5/mlx5_rxtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c index 9de6a5028a..2b4fc2ae06 100644 --- a/drivers/net/mlx5/mlx5_rxtx.c +++ b/drivers/net/mlx5/mlx5_rxtx.c @@ -4286,6 +4286,8 @@ mlx5_tx_burst_empw_inline(struct mlx5_txq_data *restrict txq, loc->mbuf->ol_flags & PKT_TX_DYNF_NOINLINE) goto pointer_empw; if (MLX5_TXOFF_CONFIG(MPW)) { + if (dlen > txq->inlen_send) + goto pointer_empw; tlen = dlen; if (part == room) { /* Open new inline MPW session. */ -- 2.20.1