Re: sch_generic.c - why skb->some_field gets undefined, afterdev_queue_xmit is called?????

From: David S. Miller (davem@redhat.com)
Date: Fri Aug 15 2003 - 10:55:44 EST


On Fri, 15 Aug 2003 17:49:44 +0200
"Adam Flizikowski" <adam_fli@xxxxxxxxxxxxxx> wrote:

> >> skb->pkt_nr has PROPER value in here !!!
>
> 88 /* And release queue */
> 89 spin_unlock(&dev->queue_lock);
> 90
> 91 if (!netif_queue_stopped(dev)) {
> 92 if (netdev_nit)
> 93 dev_queue_xmit_nit(skb, dev);
> 94
> 95 if (dev->hard_start_xmit(skb, dev) == 0)
> {
> 96 dev->xmit_lock_owner = -1;
> 97 spin_unlock(&dev->xmit_lock);
> >> skb->pkt_nr has UNDEFINED value here !!!!!
>
> Could you please tell WHY is that skb->pkt_nr is undefined (no value)
> underneath???

hard_start_xmit() can free the skb making your skb->pkt_nr values
become dupa.
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html