net: netdevsim: add some fake page pool use
authorJakub Kicinski <kuba@kernel.org>
Fri, 12 Apr 2024 14:14:31 +0000 (07:14 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 15 Apr 2024 18:21:11 +0000 (11:21 -0700)
commit1580cbcbfe770b0a7fb76735c1a601483335c1c2
tree10374401f6591dde5da470dd045334792bc103a4
parent77c842caa772044db9f8517a03d33df779f9517c
net: netdevsim: add some fake page pool use

Add very basic page pool use so that we can exercise
the netlink uAPI in a selftest.

Page pool gets created on open, destroyed on close.
But we control allocating of a single page thru debugfs.
This page may survive past the page pool itself so that
we can test orphaned page pools.

Link: https://lore.kernel.org/r/20240412141436.828666-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/netdev.c
drivers/net/netdevsim/netdevsim.h