Multi-threaded sequenced receive for fast network port stream of packets
First Claim
Patent Images
1. A method of processing a data packet comprising:
- using a first thread to process a first section of the data packet, the first thread saving state information to a first mailbox, storing the first section of the data packet to a memory and saving output port information to a second mailbox;
using two or more middle threads to process a middle section of the data packet, each of the two or more middle threads retrieving the state information from the first mailbox, incrementing an element counter, saving updated state information to the first mailbox, and storing the middle section of the data packet to the memory;
using a final thread to process a last section of the data packet, the final thread retrieving the state information from the first mailbox, incrementing the element counter, retrieving the output port information from the second mailbox, and storing the last section of the data packet to the memory.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of processing network data in a network processor includes using three or more threads to process a beginning portion, a middle portion, and an end portion of data packet. The first thread processes the beginning portion; one or more middle threads process the middle portion, and a last thread processes the end portion. First information is indirectly passed from the first thread to the last thread via a first buffer with the middle threads progressively updating the first information. Second information is directly passed from the first thread to the last thread via a second buffer.
-
Citations
7 Claims
-
1. A method of processing a data packet comprising:
-
using a first thread to process a first section of the data packet, the first thread saving state information to a first mailbox, storing the first section of the data packet to a memory and saving output port information to a second mailbox; using two or more middle threads to process a middle section of the data packet, each of the two or more middle threads retrieving the state information from the first mailbox, incrementing an element counter, saving updated state information to the first mailbox, and storing the middle section of the data packet to the memory; using a final thread to process a last section of the data packet, the final thread retrieving the state information from the first mailbox, incrementing the element counter, retrieving the output port information from the second mailbox, and storing the last section of the data packet to the memory. - View Dependent Claims (2, 3)
-
-
4. An article comprising a computer-readable medium which store computer-executable instructions for receiving data from a plurality of ports, the instructions causing a computer to:
-
use a first thread to process a first section of a data packet including saving state information to a first mailbox, storing the first section of the data packet to a memory, and saving output port information to a second mailbox; use a middle thread to process a middle section of the data packet including retrieving the state information from the first mailbox, incrementing an element counter, saving updated state information to the first mailbox, and storing the middle section of the data packet to the memory; and use a final thread to process a last section of the data packet including retrieving the state information from the first mailbox, incrementing the element counter, retrieving the output port information from the second mailbox, and storing the last section of the data packet to the memory. - View Dependent Claims (5, 6, 7)
-
Specification