Contents

lockEnqueueWithDrop

Adds a chain of packets to the tail of a synchronized queue.

Declaration

virtual UInt32 lockEnqueueWithDrop(
 mbuf_tm);

Parameters

  • m:

    A chain of packets to add to the tail of the queue.

Return Value

Returns the number of packets dropped and freed by the queue.

Overview

Packets are dropped if the size of the queue has reached its capacity. A spinlock is used to synchronize access to the queue.

See Also

Miscellaneous