]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: netpoll: Individualize the skb pool
authorBreno Leitao <leitao@debian.org>
Thu, 14 Nov 2024 11:00:11 +0000 (03:00 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 Nov 2024 00:25:34 +0000 (16:25 -0800)
commit221a9c1df790fa711d65daf5ba05d0addc279153
tree1142a0ac42fe16941b963ab25ac050000ba2eb35
parent11ee317d883ef111b8c36228437eaffea7b49bbc
net: netpoll: Individualize the skb pool

The current implementation of the netpoll system uses a global skb
pool, which can lead to inefficient memory usage and
waste when targets are disabled or no longer in use.

This can result in a significant amount of memory being unnecessarily
allocated and retained, potentially causing performance issues and
limiting the availability of resources for other system components.

Modify the netpoll system to assign a skb pool to each target instead of
using a global one.

This approach allows for more fine-grained control over memory
allocation and deallocation, ensuring that resources are only allocated
and retained as needed.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20241114-skb_buffers_v2-v3-1-9be9f52a8b69@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netpoll.h
net/core/netpoll.c