net/hinic: fix offload info calculating for TSO
authorXiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Fri, 1 Nov 2019 13:36:43 +0000 (21:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:05 +0000 (23:15 +0100)
commit203911b1dc33db7b16e598c7ce36229652bc0d1a
tree462c69c0127dca56d65bdbdf7ee7da78c7e4f8b9
parent5a41dbe9344ee06f695b1f73b24e7e6396009bcc
net/hinic: fix offload info calculating for TSO

For VXLAN TSO offload, PMD calculates offload info
err due to the wrong branch, which can cause hardware failed.

Fixes: c3ba1f0f20cd ("net/hinic: support inner L3 checksum offload")

Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
drivers/net/hinic/hinic_pmd_tx.c