摘要 |
One embodiment relates to a method of processing packets by a network stack. A first data packet is received from a client via a network, and a network buffer is allocated for the data packet. An indication is given that the data packet is ready for reading by an application. In addition, the network buffer is cached in a network buffer cache. Subsequently, response data may be received from the application, and the network buffer may be re-used from the network buffer cache. The response data may be sent in a second data packet to the client via the network. Finally, the network buffer may be freed. Other embodiments, aspects, and features are also disclosed.
|