net/hns3: cleanup duplicated code on processing TSO in Tx
authorChengchang Tang <tangchengchang@huawei.com>
Sat, 4 Jul 2020 10:09:49 +0000 (18:09 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:28 +0000 (23:38 +0200)
commita001f09d11fac91b760c038cf69af7b041bc983c
tree3203ee2f5c693aabed7d2c52b7a781fe8e332f4e
parent9570b1fdbdad47cab28dff58a017b0447bf32ed1
net/hns3: cleanup duplicated code on processing TSO in Tx

This patch fixes up paylen calculation twice when processing TSO request
in the '.tx_pkt_burst' ops implementation function to avoid performance
loss.

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