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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Aug 2003 17:49:44 +0200
"Adam Flizikowski" <adam_fli@poczta.onet.pl> 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.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux