net/mlx5: fix Tx when first segment size is too short
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Wed, 29 Mar 2017 07:51:39 +0000 (09:51 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:58 +0000 (19:02 +0200)
commit959be52e9308255692ddd6f72ff0a7eb977d07cd
tree923e7f2557cca0c505645c40966906040e1bc76f
parent1ef4c3a5c1f76b810620b76d82a31ce33a83d3fe
net/mlx5: fix Tx when first segment size is too short

First segment size must be at least 18 bytes, packets not respecting this
are silently not sent by the NIC but counted as sent by the PMD.  The only
way to figure out is compiling the PMD in debug mode.

Fixes: 6579c27c11a5 ("net/mlx5: remove gather loop on segments")
Cc: stable@dpdk.org
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_rxtx.c