summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_rxtx.c
diff options
context:
space:
mode:
authorYongseok Koh <yskoh@mellanox.com>2018-02-26 09:50:57 -0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-03-30 14:08:42 +0200
commit24a8f52455ff69826da460068ba1a5db17cc1085 (patch)
treedea3f521b7b974e642e1edaa1ccd5f80fd04f513 /drivers/net/mlx5/mlx5_rxtx.c
parent038e72511f2147c238ff1cb021c82d74efcf630f (diff)
downloaddpdk-24a8f52455ff69826da460068ba1a5db17cc1085.zip
dpdk-24a8f52455ff69826da460068ba1a5db17cc1085.tar.gz
dpdk-24a8f52455ff69826da460068ba1a5db17cc1085.tar.xz
net/mlx5: fix disabling Tx packet inlining
Adding 'txq_inline=0' to PMD parameter should disable Tx packet inlining but it doesn't work properly for Enhanced Multi-Packet Send. Fixes: 6ce84bd88919 ("net/mlx5: add enhanced multi-packet send for ConnectX-5") Cc: stable@dpdk.org Signed-off-by: Yongseok Koh <yskoh@mellanox.com> Acked-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_rxtx.c')
-rw-r--r--drivers/net/mlx5/mlx5_rxtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx5/mlx5_rxtx.c b/drivers/net/mlx5/mlx5_rxtx.c
index dc4ead9..049f7e6 100644
--- a/drivers/net/mlx5/mlx5_rxtx.c
+++ b/drivers/net/mlx5/mlx5_rxtx.c
@@ -1382,7 +1382,7 @@ txq_burst_empw(struct mlx5_txq_data *txq, struct rte_mbuf **pkts,
(!txq->mpw_hdr_dseg ||
mpw.total_len >= MLX5_WQE_SIZE);
}
- if (do_inline) {
+ if (max_inline && do_inline) {
/* Inline packet into WQE. */
unsigned int max;