954e1d2ccd
before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary. |
||
---|---|---|
.. | ||
i4b_iframe.c | ||
i4b_l2.c | ||
i4b_l2.h | ||
i4b_l2fsm.c | ||
i4b_l2fsm.h | ||
i4b_l2timer.c | ||
i4b_lme.c | ||
i4b_mbuf.c | ||
i4b_sframe.c | ||
i4b_tei.c | ||
i4b_uframe.c | ||
i4b_util.c |