* dev_kfree_skb[_irq,_any] usage rules
@ 2005-06-29 10:46 Denis Vlasenko
0 siblings, 0 replies; only message in thread
From: Denis Vlasenko @ 2005-06-29 10:46 UTC (permalink / raw)
To: linux-kernel; +Cc: David S. Miller
Hi,
I have this hard_start_xmit code (simplified):
int start_xmit(struct sk_buff *skb, netdevice_t * dev)
{
struct mydevice *priv = acx_netdev_priv(dev);
if (!skb) goto end;
if (!priv) goto end;
/* there is no one to talk to */
if (priv->status != ACX_STATUS_4_ASSOCIATED) {
printk("start_xmit() called but not associated yet\n");
/* silently drop the packet, since we're not connected yet */
dev_kfree_skb(skb);
priv->stats.tx_errors++;
goto end;
}
...
}
Should I use dev_kfree_skb(skb) here or dev_kfree_skb_irq(skb)?
(IIRC hard_start_xmit is in atomic context, no?)
There is also a dev_kfree_skb_any(skb). What are the rules?
--
vda
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-06-29 10:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-29 10:46 dev_kfree_skb[_irq,_any] usage rules Denis Vlasenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®