Re: [PATCH 1/5] netpoll: use sk_buff_head for txq

2006-10-24 Thread Stephen Hemminger
On Mon, 23 Oct 2006 23:03:50 -0700 (PDT) David Miller <[EMAIL PROTECTED]> wrote: > From: Stephen Hemminger <[EMAIL PROTECTED]> > Date: Mon, 23 Oct 2006 12:02:53 -0700 > > > + spin_lock_irqsave(&netpoll_txq.lock, flags); > > + for (skb = (struct sk_buff *)netpoll_txq.next; > > +skb !=

Re: [PATCH 1/5] netpoll: use sk_buff_head for txq

2006-10-23 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Mon, 23 Oct 2006 12:02:53 -0700 > + spin_lock_irqsave(&netpoll_txq.lock, flags); > + for (skb = (struct sk_buff *)netpoll_txq.next; > + skb != (struct sk_buff *)&netpoll_txq; skb = next) { > + next = skb->next; > +

[PATCH 1/5] netpoll: use sk_buff_head for txq

2006-10-23 Thread Stephen Hemminger
This is the 3rd version of the netpoll patches. The first patch switches from open-coded skb list to using a skb_buff_head. It also flushes packets from queue when device is removed from netpoll. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- netpoll.orig/net/core/netpoll.c +++ netpoll/