net: veth: use newly added page pool API for veth with xdp 12/309712/1 accepted/tizen/unified/20240422.153132 accepted/tizen/unified/x/20240419.130235
authorYunsheng Lin <linyunsheng@huawei.com>
Fri, 20 Oct 2023 09:59:52 +0000 (17:59 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 16 Apr 2024 02:24:58 +0000 (11:24 +0900)
commit9d5e58f624b23fde16c0635269a64babc5e0dfe7
tree6f06232204d7cc57a758be4fa4785f119d484422
parentf3a5bc15db5d814d64b91c619ba320cf15eb59a1
net: veth: use newly added page pool API for veth with xdp

Use page_pool_alloc() API to allocate memory with least
memory utilization and performance penalty.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
CC: Lorenzo Bianconi <lorenzo@kernel.org>
CC: Alexander Duyck <alexander.duyck@gmail.com>
CC: Liang Chen <liangchen.linux@gmail.com>
CC: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20231020095952.11055-6-linyunsheng@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 2d0de67da51a90c6acf7bf08d7b0501f45408002)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I7fd0ea80d818122ed66642c98bbd33705c348e46
drivers/net/veth.c