Skip to content

Commit

Permalink
net/i40e: support hash configuration in RSS flow
Browse files Browse the repository at this point in the history
This patch supports:

- Symmetric hash configuration
- Hash input set configuration

Signed-off-by: Chenxu Di <chenxux.di@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
  • Loading branch information
Chenxu Di authored and Ferruh Yigit committed Apr 21, 2020
1 parent 99d8ba7 commit feaae28
Show file tree
Hide file tree
Showing 5 changed files with 703 additions and 95 deletions.
37 changes: 37 additions & 0 deletions doc/guides/nics/i40e.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Features of the i40e PMD are:
- Queue region configuration
- Virtual Function Port Representors
- Malicious Device Drive event catch and notify
- Generic flow API

Prerequisites
-------------
Expand Down Expand Up @@ -569,6 +570,42 @@ details please refer to :doc:`../testpmd_app_ug/index`.
testpmd> set port (port_id) queue-region flush (on|off)
testpmd> show port (port_id) queue-region
Generic flow API
~~~~~~~~~~~~~~~~~~~

- ``RSS Flow``

RSS Flow supports to set hash input set, hash function, enable hash
and configure queue region.
For example:
Configure queue region as queue 0, 1, 2, 3.

.. code-block:: console
testpmd> flow create 0 ingress pattern end actions rss types end \
queues 0 1 2 3 end / end
Enable hash and set input set for ipv4-tcp.

.. code-block:: console
testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end \
actions rss types ipv4-tcp l3-src-only end queues end / end
Set symmetric hash enable for flow type ipv4-tcp.

.. code-block:: console
testpmd> flow create 0 ingress pattern eth / ipv4 / tcp / end \
actions rss types ipv4-tcp end queues end func symmetric_toeplitz / end
Set hash function as simple xor.

.. code-block:: console
testpmd> flow create 0 ingress pattern end actions rss types end \
queues end func simple_xor / end
Limitations or Known issues
---------------------------

Expand Down
2 changes: 2 additions & 0 deletions doc/guides/rel_notes/release_20_05.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ New Features
Updated i40e PMD with new features and improvements, including:

* Enable MAC address as FDIR input set for ipv4-other, ipv4-udp and ipv4-tcp.
* Added support for RSS using L3/L4 source/destination only.
* Added support for setting hash function in rte flow.

* **Updated the Intel iavf driver.**

Expand Down
Loading

0 comments on commit feaae28

Please sign in to comment.