Merge branch 'introduce-page_pool_alloc-related-api'
authorJakub Kicinski <kuba@kernel.org>
Tue, 24 Oct 2023 02:14:51 +0000 (19:14 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Oct 2023 02:14:51 +0000 (19:14 -0700)
commitefb3e0e1649f944c032095e3f0533a235a7477d3
treed80ad1aec6a538e50e841ec15360276fed7e6ed6
parentf4dbc2bb7a54d3bff234a9f1915f1b7187bedb1f
parent2d0de67da51a90c6acf7bf08d7b0501f45408002
Merge branch 'introduce-page_pool_alloc-related-api'

Yunsheng Lin says:

====================
introduce page_pool_alloc() related API

In [1] & [2] & [3], there are usecases for veth and virtio_net
to use frag support in page pool to reduce memory usage, and it
may request different frag size depending on the head/tail
room space for xdp_frame/shinfo and mtu/packet size. When the
requested frag size is large enough that a single page can not
be split into more than one frag, using frag support only have
performance penalty because of the extra frag count handling
for frag support.

So this patchset provides a page pool API for the driver to
allocate memory with least memory utilization and performance
penalty when it doesn't know the size of memory it need
beforehand.

1. https://patchwork.kernel.org/project/netdevbpf/patch/d3ae6bd3537fbce379382ac6a42f67e22f27ece2.1683896626.git.lorenzo@kernel.org/
2. https://patchwork.kernel.org/project/netdevbpf/patch/20230526054621.18371-3-liangchen.linux@gmail.com/
3. https://github.com/alobakin/linux/tree/iavf-pp-frag
====================

Link: https://lore.kernel.org/r/20231020095952.11055-1-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>