net/mlx5: fix Tx WQE corruption caused by starvation
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Thu, 2 Feb 2017 10:34:12 +0000 (11:34 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:48 +0000 (12:25 +0100)
commitf04f1d51564b35f20aefd8837b45abe3a3468bb1
tree54029a83d4f56e172acd656f0cb0305da2e02c26
parent0d637a34cbb2287dc8e285322ba84126c2d4b6e7
net/mlx5: fix Tx WQE corruption caused by starvation

Fixes an issue which may occurs with the inline feature activated and a
packet greater than the max_inline requested.

In such situation, more work request elements can be consumed and in the
worst case override some still handled by the NIC, this can result in
sending garbage on the network or putting the work queue in error.

Fixes: 2a66cf378954 ("net/mlx5: support inline send")
Cc: stable@dpdk.org
Reported-by: Elad Persiko <eladpe@mellanox.com>
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h