To assign an IP address to the interface, run:
Note: 'x' is the OS assigned interface number.
To check driver and device information:
To query stateless offload status:
To set stateless offload status:
To query interrupt coalescing settings:
To enable/disable adaptive interrupt moderation:
By default, the driver uses adaptive interrupt moderation for the receive path, which adjusts the moderation time to the traffic pattern.
To set the values for packet rate limits and for moderation time high and low:
Above an upper limit of packet rate, adaptive moderation will set the moderation time to its highest value. Below a lower limit of packet rate, the moderation time will be set to its lowest value.
To set interrupt coalescing settings when adaptive moderation is disabled:
usec settings correspond to the time to wait after the *last* packet is sent/received before triggering an interrupt.
To query ring size values:
To modify rings size:
To obtain additional device statistics:
The driver defaults to the following parameters:
- Both ports are activated (i.e., a net device is created for each port)
- The number of Rx rings for each port is the nearest power of 2 of number of cpu cores, limited by 16.
- LRO is enabled with 32 concurrent sessions per Rx ring
Some of these values can be changed using module parameters, which can be displayed by running:
To set non-default values to module parameters, add to the /etc/modprobe.conf file:
Values of all parameters can be observed in /sys/module/mlx5_en/parameters/.