net/hns3: fix processing Tx offload flags
authorChengchang Tang <tangchengchang@huawei.com>
Tue, 23 Mar 2021 13:45:53 +0000 (21:45 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Mar 2021 10:30:46 +0000 (12:30 +0200)
commita1d0caa92c7fe43cef7a9f6ac4772e0eecd4a011
tree088ce4a9a21e404f6f7dbeba731ad6c11a0c3876
parent655c4f2e51e8248c4fe46a5286eb389738651f3d
net/hns3: fix processing Tx offload flags

Currently, if the PKT_TX_TCP_SEG and PKT_TX_TCP_CKSUM offload flags set
in the same time, hns3 PMD can not process the descriptors correctly.

This patch fixes it by adding the processing of this situation.

Fixes: fb6eb9009f41 ("net/hns3: fix Tx checksum with fixed header length")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_rxtx.c