net/mlx5: fix TSO multi-segment inline length
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Sun, 20 Jun 2021 06:30:28 +0000 (09:30 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 8 Jul 2021 20:09:23 +0000 (22:09 +0200)
commit52e1ece50aaf526b900120283284834b0a59e3ce
treeda92cf1298151edcf20f07b4900093c511529235
parentb3880af2ce3183c5cdb55760ef47036dc1585965
net/mlx5: fix TSO multi-segment inline length

The inline data length for TSO ethernet segment should be
calculated from the TSO header instead of the inline size
configured by txq_inline_min devarg or reported by the NIC.
It is imposed by the nature of TSO offload - inline header
is being duplicated to every output TCP packet.

Fixes: cacb44a09962 ("net/mlx5: add no-inline Tx flag")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_tx.h