net/hinic: fix TSO
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Wed, 20 May 2020 11:52:59 +0000 (19:52 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 21 May 2020 15:12:27 +0000 (17:12 +0200)
commitc6f9f0b7d495b27833077b7904f290f4a69e36ad
treeeebfc04807be0f9c565aef5808af8c9c8b98bc91
parent357439ad0927ce817ad9d4138b71554c683406a8
net/hinic: fix TSO

When TSO MSS is smaller than 80, and the sum length of continuous
sge num is larger than a MSS, which may cause hardware failed,
so in this scenarios pmd driver should adjust the tso_segsz with
the same with the value of hardware supported.

Fixes: 076221c8fe1d ("net/hinic: add Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
drivers/net/hinic/hinic_pmd_tx.c