net/hns3: optimize Tx performance
authorChengwen Feng <fengchengwen@huawei.com>
Tue, 16 Nov 2021 01:22:12 +0000 (09:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Nov 2021 15:39:20 +0000 (16:39 +0100)
commit0b77e8f3d3643337465e951198497f0c521bfa4c
treee5bfbf359fe3eef3c94ada631fc1e23e9608a45c
parent3cc817c195cc8e3bf54b5cadd89c5c7776d3727e
net/hns3: optimize Tx performance

This patch uses tx_free_thresh to control mbufs free when the common
xmit algorithm is used.

This patch also modifies the implementation of PMD's tx_done_cleanup
because the mbuf free algorithm changed.

In the testpmd single core MAC forwarding scenario, the performance is
improved by 10% at 64B on Kunpeng920 platform.

Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_rxtx.c