net/mlx5: fix TSO segment size
authorShahaf Shuler <shahafs@mellanox.com>
Tue, 20 Jun 2017 05:24:47 +0000 (08:24 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000 (15:00 +0200)
commit83daf156a9e7845f16059aa45a781baf48eb8ff5
tree9005ff64c2510e44816b0a59c61145e0aa577ca4
parent2d449f7c52de93a5978b03ea541e454fe87f801b
net/mlx5: fix TSO segment size

In case on multi segment packet, the TSO segment size
was taken from the last segment. This may lead to incorrect
values in case not all segments are initialized with the field.

Fixing it by taking the value from the first segment.

Fixes: 3f13f8c23a7c ("net/mlx5: support hardware TSO")
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.c