lkml.org 
[lkml]   [2005]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 6/8] 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.

    Ingo

    Signed-off-by: Ingo Molnar <mingo@elte.hu>

    I've modified this to be called earlier - mpm

    Signed-off-by: Matt Mackall <mpm@selenic.com>

    Index: l/net/core/netpoll.c
    ===================================================================
    --- l.orig/net/core/netpoll.c 2005-08-08 23:00:48.000000000 -0500
    +++ l/net/core/netpoll.c 2005-08-11 01:50:31.000000000 -0500
    @@ -724,6 +724,10 @@ int netpoll_setup(struct netpoll *np)
    npinfo->rx_np = np;
    spin_unlock_irqrestore(&npinfo->rx_lock, flags);
    }
    +
    + /* fill up the skb queue */
    + refill_skbs();
    +
    /* last thing to do is link it to the net device structure */
    ndev->npinfo = npinfo;

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-08-12 04:22    [W:3.081 / U:0.668 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site