net/mlx5: fix num seg assumption in SSE Tx
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 14 Sep 2017 10:50:36 +0000 (13:50 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commitf2fdd44cc1a162d9f6c3c866f0eaca71670bb953
treef8bcf39ec98a2806549b27e8c4d9802758a6af1e
parentd829249790f08fd54ccc0d5e462b2a6512c9eae1
net/mlx5: fix num seg assumption in SSE Tx

vPMD Tx function assumes that after the scatter of the
multi-segment packets the next packet will be a single segment packet.

This is not current as the function can return due to lack of resources
without sending all of the multi-segment mbufs sequence.

Fixes: 6cb559d67b83 ("net/mlx5: add vectorized Rx/Tx burst for x86")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxtx_vec_sse.c