On Wed, Sep 15, 2021 at 7:05 PM Yunsheng Lin linyunsheng@huawei.com wrote:
As memtioned before, Tx recycling is based on page_pool instance per socket. it shares the page_pool instance with rx.
Anyway, based on feedback from edumazet and dsahern, I am still trying to see if the page pool is meaningful for tx.
It is not for generic linux TCP stack, but perhaps for benchmarks.
Unless you dedicate one TX/RX pair per TCP socket ?
Most high performance TCP flows are using zerocopy, I am really not sure why we would need to 'optimize' the path that is wasting cpu cycles doing user->kernel copies anyway, at the cost of insane complexity.