[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <k2h412e6f7f1004211835q5c8e769did22080dd08b55439@mail.gmail.com>
Date: Thu, 22 Apr 2010 09:35:44 +0800
From: Changli Gao <xiaosuo@...il.com>
To: Tom Herbert <therbert@...gle.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
jamal <hadi@...erus.ca>
Subject: Re: [PATCH v3] net: batch skb dequeueing from softnet input_pkt_queue
On Thu, Apr 22, 2010 at 7:23 AM, Tom Herbert <therbert@...gle.com> wrote:
>
> How about just using two input_pkt_queue's (define
> input_pkt_queue[2])? One that is used to enqueue from RPS, and one
> that is being processed by process_backlog. Then the only thing that
> needs to be done under lock in process_backlog is to switch the
> queues; something like sd->current_input_pkt_queue ^= 1
>
It is a better idea, IMO.
--
Regards,
Changli Gao(xiaosuo@...il.com)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists