diff options
author | Jakub Kicinski <[email protected]> | 2024-11-15 16:25:39 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-11-15 16:25:40 -0800 |
commit | bf3c76b4c46a532c78e2b26e0dfde1f58231261f (patch) | |
tree | 34a990262e956e5aabfeee929fb8ebec9df28689 /tools/perf/scripts/python/stackcollapse.py | |
parent | 11ee317d883ef111b8c36228437eaffea7b49bbc (diff) | |
parent | 6c59f16f1770481a6ee684720ec55b1e38b3a4b2 (diff) |
Merge branch 'net-netpoll-improve-skb-pool-management'
Breno Leitao says:
====================
net: netpoll: Improve SKB pool management
The netpoll subsystem pre-allocates 32 SKBs in a pool for emergency use
during out-of-memory conditions. However, the current implementation has
several inefficiencies:
* The SKB pool, once allocated, is never freed:
* Resources remain allocated even after netpoll users are removed
* Failed initialization can leave pool populated forever
* The global pool design makes resource tracking difficult
This series addresses these issues through three patches:
Patch 1 ("net: netpoll: Individualize the skb pool"):
- Replace global pool with per-user pools in netpoll struct
Patch 2 ("net: netpoll: flush skb pool during cleanup"):
- Properly free pool resources during netconsole cleanup
These changes improve resource management and make the code more
maintainable. As a side benefit, the improved structure would allow
netpoll to be modularized if desired in the future.
v2: https://lore.kernel.org/[email protected]
v1: https://lore.kernel.org/[email protected]
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions