Re: [PATCH v3] net: batch skb dequeueing from softnet input_pkt_queue

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tom Herbert
Date: Wednesday, April 21, 2010 - 4:23 pm

>        do {

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

Tom

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v3] net: batch skb dequeueing from softnet inpu ..., Tom Herbert, (Wed Apr 21, 4:23 pm)