Rules

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2023-07-31
Revision
1.2 English

The general format of the rule is:

[rule=n] if=ethN protocol=(ip|tcp|udp) [local_ip=a.b.c.d[/mask]] [remote_ip=a.b.c.d[/mask]] [local_port=a[-b]] [remote_port=a[-b]] [vlan=n] action=(ACCELERATE|DECELERATE)
Note: Using the IP address rule form, the vlan identifier is effective only when using a Solarflare SFN8000 or X2 series adapter which is configured to use the full-featured firmware variant. On other Solarflare adapters the vlan identifier is ignored. The vlan identifier can only be specified with the vlan=n syntax and not on the interface.
[rule=n] if=ethN protocol=eth mac=xx:xx:xx:xx:xx:xx[/FF:FF:FF:FF:FF:FF] [vlan=n] action=(ACCELERATE|DECELERATE)
Note: Using the MAC address rule form, the vlan identifier is effective when specified for any Solarflare adapter.