Multi-threaded sequenced receive for fast network port stream of packets
First Claim
Patent Images
1. A method of processing network data comprising:
- using three or more threads of a set of threads provided by multiple programmable multi-threaded engines integrated within a processor to process a beginning portion, a middle portion, and an end portion of a data packet, wherein a first thread processes the beginning portion of the data packet, one or more middle threads process the middle portion of the data packet, increment an element counter, and a last thread processes the end portion of the data packet;
passing first information from the first thread indirectly to the last thread via a first buffer, wherein each of the one or more middle threads progressively updates the first information;
passing second information from the first thread directly to the last thread via a second buffer;
wherein the first information includes status information,wherein the status information includes an element count indicative of a number of portions of the data packet that have been processed, andwherein the second information includes port information.
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 is presented. 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.
411 Citations
14 Claims
-
1. A method of processing network data comprising:
-
using three or more threads of a set of threads provided by multiple programmable multi-threaded engines integrated within a processor to process a beginning portion, a middle portion, and an end portion of a data packet, wherein a first thread processes the beginning portion of the data packet, one or more middle threads process the middle portion of the data packet, increment an element counter, and a last thread processes the end portion of the data packet; passing first information from the first thread indirectly to the last thread via a first buffer, wherein each of the one or more middle threads progressively updates the first information; passing second information from the first thread directly to the last thread via a second buffer; wherein the first information includes status information, wherein the status information includes an element count indicative of a number of portions of the data packet that have been processed, and wherein the second information includes port information. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method of processing a data packet comprising:
-
processing a first portion of the data packet by a first thread of a set of threads provided by multiple programmable multi-threaded engines integrated within a processor; processing a middle portion of the data packet by a second thread of the set of threads provided by the multiple programmable multi-threaded engines integrated within the processor and incrementing an element counter; and processing an end portion of the data packet by a final thread of the set of threads provided by the multiple programmable multi-threaded engines integrated within the processor and incrementing the element counter; storing first information by the first thread to be retrieved by the second thread; storing second information by the first thread to be retrieved by the final thread, wherein the first information includes status information, and the second information includes the port information, storing the second status information by the second thread; processing the second middle portion of the data packet by the final thread; and
retrieving the second status information by the final thread. - View Dependent Claims (7, 8, 9)
-
-
10. A method of processing a data packet comprising:
-
using a first thread of a set of threads provided by multiple programmable multi-threaded engines integrated within a processor to process a first section of the data packet, the first thread saving state information, storing the first section of the data packet to a memory and saving output port information; using two or more middle threads of the set of threads provided by the multiple programmable multi-threaded engines integrated within the processor to process a middle section of the data packet, each of the two or more middle threads retrieving the state information, incrementing an element counter, saving updated state information, and storing at least a portion of the middle section of the data packet to the memory; and using a final thread of the set of threads provided by the multiple programmable multi-threaded engines integrated within the processor to process a last section of the data packet, the final thread retrieving the state information, incrementing the element counter, retrieving the output port information, and storing the last section of the data packet to the memory. - View Dependent Claims (11, 12)
-
-
13. 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 of a set of threads provided by multiple programmable multi-threaded engines integrated within a processor to process a first section of a data packet including saving state information, storing the first section of the data packet to a memory, and saving output port information; use a middle thread of the set of threads provided by the multiple programmable multi-threaded engines integrated within the processor to process a middle section of the data packet including retrieving the state information, incrementing an element counter, saving updated state information, and storing the middle section of the data packet to the memory; and use a final thread of the set of threads provided by the multiple programmable multi-threaded engines integrated within the processor to process a last section of the data packet including retrieving the state information, incrementing the element counter, retrieving the output port information, and storing the last section of the data packet to the memory. - View Dependent Claims (14)
-
Specification