net/mlx5: fix Tx max inline with TSO
authorShahaf Shuler <shahafs@mellanox.com>
Wed, 3 May 2017 06:55:35 +0000 (09:55 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 May 2017 15:43:34 +0000 (17:43 +0200)
commit993b2455fbbd9f4339211d6faa7b15f8ecf84ec8
treee73ad06d956d1da7a674da4b36fc359ce3476b76
parent70fca51612722ed686d5565700717384b8f52887
net/mlx5: fix Tx max inline with TSO

When TSO is enabled, Verbs layer aggregates the TSO
inline size with the txq inline size for the Tx creation,
while the PMD takes the maximum among them.

Fixing it by adjusting the max inline parameter before
passing to to Verbs.

Fixes: 3f13f8c23a7c ("net/mlx5: support hardware TSO")

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_txq.c