Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[NETPOLL]: pre-fill skb pool

we could do one thing (see the patch below): i think it would be useful
to fill up the netlogging skb queue straight at initialization time.
Especially if netpoll is used for dumping alone, the system might not be
in a situation to fill up the queue at the point of crash, so better be
a bit more prepared and keep the pipeline filled.

[ I've modified this to be called earlier - mpm ]

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ingo Molnar and committed by
David S. Miller
26520765 0db1d6fc

+4
+4
net/core/netpoll.c
··· 725 725 npinfo->rx_np = np; 726 726 spin_unlock_irqrestore(&npinfo->rx_lock, flags); 727 727 } 728 + 729 + /* fill up the skb queue */ 730 + refill_skbs(); 731 + 728 732 /* last thing to do is link it to the net device structure */ 729 733 ndev->npinfo = npinfo; 730 734