net/hns3: check TSO segment size during Tx
authorHongbo Zheng <zhenghongbo3@huawei.com>
Wed, 3 Jun 2020 09:32:01 +0000 (17:32 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Jun 2020 09:32:08 +0000 (11:32 +0200)
commitb68259f775b749ae860dfa4e170dd01774bf30d7
tree6a81cdf2d96bc038e69bcf631b1b8e58183038b9
parente28bc1476558467b2898abab306b2317bada3d78
net/hns3: check TSO segment size during Tx

Base on hns3 network engine, when the rte_eth_tx_burst API is called
by Upper Level Process, if PKT_TX_TCP_SEG flag is set and tso_segsz
is 0 in the input parameter structure rte_mbuf, hns3 PMD driver will
process this packet as an non-TSO packet, otherwise hardware will enter
an abnormal state.

Fixes: 6dca716c9e1d ("net/hns3: support TSO")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_rxtx.c