Enabling LRO
Purpose
The Hi1822 NICs support large receive offload (LRO). You can enable this function and set the LRO parameter properly. LRO aggregates multiple received TCP data into a large packet and transmits the packet to the protocol stack for processing, reducing processing overheads of the upper-layer protocol stack. LRO is implemented by the NIC and does not consume CPU resources. You are advised to enable the LRO parameter.
Procedure
- Check whether the value of the LRO parameter is set to on. The default value is off. Assume that the current NIC name is enp131s0.
1ethtool -k enp131s0

- Enable LRO.
ethtool -K enp131s0 lro on
- Check whether the value of the LRO parameter is set to on.
1ethtool -k enp131s0

Parent topic: Hardware Tuning