De queuing skb from qdiscs

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

 



Hi,
I have a UNIPROCESSOR machine running linux-2.4. In the following lines of code
in dev.c, under which scenarios would the dequeue function called in qdisc_run, find more
than one skb in the qdisc's queue.



/******************************* dev.c *****************************/


     /* Grab device queue */
     spin_lock_bh(&dev->queue_lock);
     q = dev->qdisc;
     if (q->enqueue) {
        int ret = q->enqueue(skb, q);

qdisc_run(dev);

        spin_unlock_bh(&dev->queue_lock);
            return ret == NET_XMIT_BYPASS ? NET_XMIT_SUCCESS : ret;
     }

/******************************* dev.c *****************************/


- : 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