On 11/11/2021 1:38 PM, Min Hu (Connor) wrote:
From: Chengwen Feng<fengcheng...@huawei.com>

The PMD should check whether the descriptor is done by hardware before
free the corresponding mbuf. Currently the common xmit algorithm will
free mbuf every time when it's invoked. Because hardware may not have
finished sending, this may lead to many invalid queries which are
whether the descriptors are done.


Hi Connor, Chengwen,

Since there will be a new version, can you please reword above paragraph?

This patch uses tx_free_thresh to control whether invoke free mbuf, and
free tx_rs_thresh mbufs each time.

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:sta...@dpdk.org

Signed-off-by: Chengwen Feng<fengcheng...@huawei.com>
Signed-off-by: Min Hu (Connor)<humi...@huawei.com>

Reply via email to