From 3e30739806cfa0f731a4ee95cd1847ac5359ef25 Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Tue, 31 Dec 2024 16:29:08 +0100 Subject: [PATCH] Update rss.rst --- doc/rss.rst | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/doc/rss.rst b/doc/rss.rst index c512dc944f..1a446a2ed9 100644 --- a/doc/rss.rst +++ b/doc/rss.rst @@ -21,7 +21,7 @@ replaced by software distribution using ZC. In order to configure the number of queues, you can use the RSS parameter at insmod time (if you are installing PF_RING ZC drivers from packages you can -use the configuration file as explained in README.apt_rpm_packages), passing +use the configuration file as explained in the installation instructions), passing a comma-separated list (one per interface) of numbers (number of queues per interface). Examples: @@ -68,6 +68,32 @@ below: ethtool -X weight 1 0 0 0 +When using PF_RING ZC, RSS is reconfigured by the PF_RING ZC driver on most Intel +adapter families. However, on some adapters (e.g. *ice* adapters) PF_RING ZC keeps +the RSS configuration created by the linux driver and ethtool should be used to +tune RSS settings. For example, to set packet hashing based on the 4-tuple on *ice* +adapters, which is source and destination IP and port (default), it is possible to use: + +.. code-block:: console + + ethtool -N enp1s0f1 rx-flow-hash tcp4 sdfn + ethtool -N enp1s0f1 rx-flow-hash udp4 sdfn + +Or to set packet hashing based on the 2-tuple, which is source and destination IP only +it is possible to use: + +.. code-block:: console + + ethtool -N enp1s0f1 rx-flow-hash tcp4 sd + ethtool -N enp1s0f1 rx-flow-hash udp4 sd + +Where in 'sdnf' and 'sd': + +- s: Source IP address +- d: Destination IP address +- f: Source port +- n: Destination port + Naming convention ~~~~~~~~~~~~~~~~~