]> git.itanic.dy.fi Git - linux-stable/commit
net: hns3: support skb's frag page recycling based on page pool
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 6 Aug 2021 02:46:22 +0000 (10:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Aug 2021 22:49:01 +0000 (15:49 -0700)
commit93188e9642c3ce11d11b2663905b703dfe89e349
treefb1db736814d35a40e4289c93d153873afa0a56e
parent53e0961da1c7bbdabd1abebb20de403ec237ec09
net: hns3: support skb's frag page recycling based on page pool

This patch adds skb's frag page recycling support based on
the frag page support in page pool.

The performance improves above 10~20% for single thread iperf
TCP flow with IOMMU disabled when iperf server and irq/NAPI
have a different CPU.

The performance improves about 135%(14Gbit to 33Gbit) for single
thread iperf TCP flow when IOMMU is in strict mode and iperf
server shares the same cpu with irq/NAPI.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/Kconfig
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h