History

net: page_pool: report when page pool was destroyed

Report when page pool was destroyed. Together with the inflight / memory use reporting this can serve as a replacement for the warning about leaked page pools we currently print to dmesg. Example output for a fake leaked page pool using some hacks in netdevsim (one "live" pool, and one "leaked" on the same dev): $ ./cli.py --no-schema --spec netlink/specs/netdev.yaml \ --dump page-pool-get [{'id': 2, 'ifindex': 3}, {'id': 1, 'ifindex': 3, 'destroyed': 133, 'inflight': 1}]

Jakub Kicinski committed 2 years ago

Commit 69cb4951 parent 7aee8426 files · +29 −0Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/linux/netdev.h+1−0
@@ -70,6 +70,7 @@ enum { · 69 unmodified lines
7070 NETDEV_A_PAGE_POOL_NAPI_ID,
7171 NETDEV_A_PAGE_POOL_INFLIGHT,
7272 NETDEV_A_PAGE_POOL_INFLIGHT_MEM,
73+ NETDEV_A_PAGE_POOL_DETACH_TIME,
7374
7475 __NETDEV_A_PAGE_POOL_MAX,
7576 NETDEV_A_PAGE_POOL_MAX = (__NETDEV_A_PAGE_POOL_MAX - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t