Enabling LRO
Principles
Large Receive Offload (LRO) aggregates multiple received TCP data packets into a large data packet and transmits it to the network protocol stack for processing. This reduces the processing overhead of the upper-layer protocol stack and improves the system capability of receiving TCP data packets.
This feature is especially obvious when a large number of small-packet network I/Os exist.
Modification Method
Run the following command to check whether the NIC LRO function is enabled:
1 | # ethtool -k $eth
|

Run the following command to enable the NIC LRO function:
1 | # ethtool -K $eth lro on
|

After LRO is enabled, the delay of a single data packet increases. Therefore, you can determine whether to enable LRO based on service requirements.
Parent topic: Optimization Methods