主权项 |
1. A method comprising:
receiving, at an ingress module of a network processor, a data packet from a computer network, the data packet to be processed by one of a plurality of core processors of the network processor; storing, in a memory having a plurality of buffers, the data packet in the memory, the storing including storing distinct portions of the data packet in one or more buffers if the packet size exceeds a size of a buffer; and generating a packet buffer chain for the data packet, the generating including
creating a plurality of packet buffer structures for the data packet, wherein one of the packet buffer structures is a header packet buffer structure corresponds to a first buffer of the one or more buffers containing a first portion of the data packet, and wherein another one of the packet buffer structures is a tail packet buffer structure that corresponds to a last buffer of the one or more buffers containing a last portion of the data packet, andlinking each of the packet buffer structures from the header packet buffer structure to the tail packet buffer structure. |