Le vendredi 04 juin 2010 à 11:29 +0800, Sonic Zhang a écrit :
Could you elaborate on this second point ?
skb can be freed from interrupt context using appropriate API :
1) If from NAPI context, no special care is needed and use
dev_kfree_skb().
2) If from hard irq context, use dev_kfree_skb_irq() :
With recent changes, skb is probably already orphaned and can be freed
immediately.
In the unlikely case it is not yet orphaned, skb is queued in
softnet_data.completion_queue.
--
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