diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2023-04-22 20:54:32 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-04-25 03:07:08 +0200 |
commit | 0ebab78cbcbfd698d40bd307b68337bdf1b47e9b (patch) | |
tree | 20eb18eff5feaf60035cbf5843cfdfb60d17d332 /drivers/net/Kconfig | |
parent | Merge tag 'nf-next-23-04-22' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
download | linux-0ebab78cbcbfd698d40bd307b68337bdf1b47e9b.tar.xz linux-0ebab78cbcbfd698d40bd307b68337bdf1b47e9b.zip |
net: veth: add page_pool for page recycling
Introduce page_pool support in veth driver in order to recycle pages
in veth_convert_skb_to_xdp_buff routine and avoid reallocating the skb
through the page allocator.
The patch has been tested sending tcp traffic to a veth pair where the
remote peer is running a simple xdp program just returning xdp_pass:
veth upstream codebase:
MTU 1500B: ~ 8Gbps
MTU 8000B: ~ 13.9Gbps
veth upstream codebase + pp support:
MTU 1500B: ~ 9.2Gbps
MTU 8000B: ~ 16.2Gbps
Tested-by: Maryam Tahhan <mtahhan@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/Kconfig')
-rw-r--r-- | drivers/net/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index c34bd432da27..368c6f5b327e 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -402,6 +402,7 @@ config TUN_VNET_CROSS_LE config VETH tristate "Virtual ethernet pair device" + select PAGE_POOL help This device is a local ethernet tunnel. Devices are created in pairs. When one end receives the packet it appears on its pair and vice |