tools: ynl: add sample for getting page-pool information
authorJakub Kicinski <kuba@kernel.org>
Sun, 26 Nov 2023 23:07:40 +0000 (15:07 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Nov 2023 14:48:39 +0000 (15:48 +0100)
commit637567e4a3ef6f6a5ffa48781207d270265f7e68
tree03d795a2591a1f3ce239993abf09790f3bc8a799
parentbe0096676e230b43730b8936ac393d155b4e3262
tools: ynl: add sample for getting page-pool information

Regenerate the tools/ code after netdev spec changes.

Add sample to query page-pool info in a concise fashion:

$ ./page-pool
    eth0[2] page pools: 10 (zombies: 0)
refs: 41984 bytes: 171966464 (refs: 0 bytes: 0)
recycling: 90.3% (alloc: 656:397681 recycle: 89652:270201)

Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/include/uapi/linux/netdev.h
tools/net/ynl/generated/netdev-user.c
tools/net/ynl/generated/netdev-user.h
tools/net/ynl/lib/ynl.h
tools/net/ynl/samples/.gitignore
tools/net/ynl/samples/Makefile
tools/net/ynl/samples/page-pool.c [new file with mode: 0644]