US 7,321,595 B2 | ||
Method for processing various numbers of ports in network processor | ||
Su-Hyun Kim, Seoul (Korea, Republic of); Young-Seok Kim, Songnam-shi (Korea, Republic of); Young-Il Kim, Yongin-shi (Korea, Republic of); and Jong-Sang Oh, Suwon-shi (Korea, Republic of) | ||
Assigned to Samsung Electronics Co., Ltd., Suwon-si, Gyeonggi-do (Korea, Republic of) | ||
Filed on May 13, 2003, as Appl. No. 10/436,104. | ||
Claims priority of application No. 10-2002-0029122 (KR), filed on May 25, 2002. | ||
Prior Publication US 2003/0219027 A1, Nov. 27, 2003 | ||
Int. Cl. H04L 12/56 (2006.01) |
U.S. Cl. 370—416 | 13 Claims |
1. A method for processing data received from various numbers of ports in a network processor, the method comprising:
receiving a number N corresponding to a number of ports;
allocating N−1 registers for storing N−1 items of port management data, the N−1 registers including a first register and a
last register, the last register corresponding to (N−1)th register;
sequentially accessing the N ports to receive packets;
when a packet is received from a selected port selected from among the N ports, processing the packet received from the selected
port; and
storing current management data of the selected port in a selected one register selected from among the N−1 registers, the
selected one register being used for storing next management data of a next port before storing current management data of
the selected port, the next port being selected from among the N ports and being a port to be accessed after the selected
port is accessed;
the selected one register being the first register when a previous register is the (N−1)th register, the previous register
being currently used for storing previous management data of a previous port selected from among the N ports, and the previous
port was accessed before the selected port was accessed.
|