摘要 |
A method and device for flexible, dynamic and optimal buffering in a networking system are provided. Sizes of incoming packets are recognized and the packets are buffered into buffers of appropriate sizes. Usage times of buffers are counted, and during an idle state of the networking system, buffer number and descriptor number are re-calculated based on usage times. Then, buffers and descriptors are re-allocated based on the re-calculated number. By re-allocation, buffer sets with higher usage times are allocated with more buffers, and vice versa, so memory waste is lowered and the overall performance of the networking system is improved.
|