CPC H04L 49/9052 (2013.01) [H04L 49/9084 (2013.01)] | 8 Claims |
1. A network interface comprising:
a processor;
a memory; and
a cache between the processor and the memory,
wherein the processor is configured to:
secure a plurality of buffers for storing transfer data in the memory, and
determine whether or not a buffer is required to be allocated for new transfer data based on an amount of buffer in use, and
a maximum value of the number of buffers capable of being used simultaneously in the plurality of buffers is set,
wherein the processor is configured to allocate a plurality of buffer groups in the memory,
wherein each of the plurality of buffer groups is composed of a plurality of buffers of the same size,
wherein the plurality of buffer groups have different buffer sizes from each other, and
wherein when a transfer data size is equal to or less than a maximum buffer size of the different buffer sizes, the processor is configured to select a buffer group having a minimum buffer size among buffer sizes equal to or greater than the transfer data size to store the transfer data.
|