net/mlx5: fix inline WQE consumption
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Thu, 2 Feb 2017 10:34:13 +0000 (11:34 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:48 +0000 (12:25 +0100)
commit8fcd6c2cf118729dd5b2dccadbaa1f3c5bf1de80
tree51a365b9059e0a6634d59db2a4b611e7ddf373df
parentf04f1d51564b35f20aefd8837b45abe3a3468bb1
net/mlx5: fix inline WQE consumption

For some sizes of packets, the number of bytes copied in the work queue
element could be greater than the available size of the inline.  In such
situation it could consume one more work queue element where it should
not.

Fixes: 0e8679fcddc4 ("net/mlx5: fix inline logic")
Cc: stable@dpdk.org
Reported-by: Elad Persiko <eladpe@mellanox.com>
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c