skbuff: Add a function to check if a page belongs to page_pool
authorLiang Chen <liangchen.linux@gmail.com>
Fri, 15 Dec 2023 03:30:10 +0000 (11:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Dec 2023 10:56:33 +0000 (10:56 +0000)
commit8cfa2dee325f72f286f8f3210f867cbb981f2302
treec3a133cd3d9b158d7d15cb15686ad63aec49c4df
parentaaf153aecef1d1831d0d6d371d5c11cf02f0337e
skbuff: Add a function to check if a page belongs to page_pool

Wrap code for checking if a page is a page_pool page into a
function for better readability and ease of reuse.

Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Mina Almasry <almarsymina@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c