net/mlx5: fix completion request for multi-segment
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Wed, 7 Aug 2019 12:58:10 +0000 (12:58 +0000)
committerRaslan Darawsheh <rasland@mellanox.com>
Wed, 7 Aug 2019 13:28:09 +0000 (15:28 +0200)
commit4dec9c79c2d76e08b3951a91137bb8622a465675
tree36366c65a8b5e0fe67cd68322fcaa5766063852d
parent3a418d1d3d8561c1de4bfc7c05fc4c975aa1a0b1
net/mlx5: fix completion request for multi-segment

The copying of sent mbufs pointers might be deferred to the end of
tx_burst() routine to be copied in one call of rte_memcpy.
For the multi segment packets this optimization is not applicable,
because number of packets does not match with number of mbufs and
we do not have linear array of pointers in pkts parameter.

The completion request generating routine wrongly took into account
the inconsistent (for multi-segment packets) deferred pointer copying.

Fixes: 5a93e173b874 ("net/mlx5: fix Tx completion request generation")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c