Re: [RFC v1] hand off skb list to other cpu to submit to upper layer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Zhang, Yanmin
Date: Tuesday, February 24, 2009 - 10:51 pm

On Tue, 2009-02-24 at 21:18 -0800, Stephen Hemminger wrote:
Sorry, I need add some comments to function netif_rx_queue.

Parameter skb_queue is point to a local var, or NULL. If it points to a local var,
just like function ixgbe_clean_rx_irq of IXGBE, so we needn't protect it when
using __skb_queue_tail to add new skb. If skb_queue is point to NULL, below

skb_queue = &queue->input_pkt_queue;

make it points to the local input_pkt_queue which is protected by local_irq_save.

Thanks for your explanation.

Thanks. Your explanation is very clear. My patch might cause reorder, but very rarely,
because reorder only happens when there is a failover in function raise_netif_irq. perhaps
I need replace the failover with just packet dropping?

I will try iperf.

Var this_cpu is used for napi_schedule late. Although the logical has no problem,
this_cpu seems confused. Let me check if there is a better way for late napi_schedule.

When skb_queue is NULL, we redirect it to queue->input_pkt_queue.

So skb_queue isn't NULL here.

Another idea is just to delete function netif_rx_queue. Drivers could use
__skb_queue_tail directly. The difference netif_rx_queue has a queue length
checking while __skb_queue_tail hasn't. But mostly skb_queue is far smaller than
queue->input_pkt_queue.qlen and queue->input_pkt_alien_queue.qlen.

Yanmin


--
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: [RFC v1] hand off skb list to other cpu to submit to u ..., Stephen Hemminger, (Tue Feb 24, 7:11 pm)
Re: [RFC v1] hand off skb list to other cpu to submit to u ..., Stephen Hemminger, (Tue Feb 24, 10:18 pm)
Re: [RFC v1] hand off skb list to other cpu to submit to u ..., Zhang, Yanmin, (Tue Feb 24, 10:51 pm)