[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100407.214039.67944635.davem@davemloft.net>
Date: Wed, 07 Apr 2010 21:40:39 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: therbert@...gle.com
Cc: davem@...emloft.com, netdev@...r.kernel.org, eric.dumazet@...il.com
Subject: Re: [PATCH v2] rfs: Receive Flow Steering
From: Tom Herbert <therbert@...gle.com>
Date: Mon, 5 Apr 2010 22:56:50 -0700 (PDT)
> @@ -2342,6 +2387,10 @@ static int enqueue_to_backlog(struct sk_buff *skb, int cpu)
> if (queue->input_pkt_queue.qlen) {
> enqueue:
> __skb_queue_tail(&queue->input_pkt_queue, skb);
> +#ifdef CONFIG_RPS
> + *qtail = queue->input_queue_head +
> + queue->input_pkt_queue.qlen;
> +#endif
> rps_unlock(queue);
> local_irq_restore(flags);
> return NET_RX_SUCCESS;
...
> @@ -2801,6 +2864,9 @@ static void flush_backlog(void *arg)
> if (skb->dev == dev) {
> __skb_unlink(skb, &queue->input_pkt_queue);
> kfree_skb(skb);
> +#ifdef CONFIG_RPS
> + queue->input_queue_head++;
> +#endif
> }
> rps_unlock(queue);
> }
Please abstract these behind inline functions that live in
some header file, so we don't need to continually pepper
dev.c with countless ifdefs.
If you fix this and the kernel command line --> sysctl thing
Eric pointed out, I think I can apply this to net-next-2.6
Thanks.
--
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