Re: [PATCH v2] netdev:bfin_mac: reclaim and free tx skb as soon as possible after transfer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Thursday, June 3, 2010 - 9:05 pm

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v2] netdev:bfin_mac: reclaim and free tx skb as ..., Eric Dumazet, (Thu Jun 3, 9:05 pm)