A traffic manager includes an execution unit that is responsive to
instructions related to queuing of data in memory. The instructions may
be provided by a network processor that is programmed to generate such
instructions, depending on the data. Examples of such instructions
include (1) writing of data units (of fixed size or variable size)
without linking to a queue, (2) re-sequencing of the data units relative
to one another without moving the data units in memory, and (3) linking
the previously-written data units to a queue. The network processor and
traffic manager may be implemented in a single chip.