aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2005-08-11 22:26:42 -0400
committerDavid S. Miller <davem@davemloft.net>2005-08-11 22:26:42 -0400
commit2652076507b662fc88ba16c27b59c7bdd9ccd956 (patch)
treedff28a2168431921a607062f56faebe9fd1b0fd0 /net
parent0db1d6fc1ea051af49ebe03c503d23996a7c5bbb (diff)
[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>
Diffstat (limited to 'net')
-rw-r--r--net/core/netpoll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index d09affdbad3c..c02a08da6d42 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -725,6 +725,10 @@ int netpoll_setup(struct netpoll *np)
725 npinfo->rx_np = np; 725 npinfo->rx_np = np;
726 spin_unlock_irqrestore(&npinfo->rx_lock, flags); 726 spin_unlock_irqrestore(&npinfo->rx_lock, flags);
727 } 727 }
728
729 /* fill up the skb queue */
730 refill_skbs();
731
728 /* last thing to do is link it to the net device structure */ 732 /* last thing to do is link it to the net device structure */
729 ndev->npinfo = npinfo; 733 ndev->npinfo = npinfo;
730 734