Skip to contentSkip to conversation

net/i40e: refactor of hash flow

PATCH New Zhang,Alvin 1 participant 1 message Dec 22, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: refactor of hash flow

From: Alvin Zhang <[email protected]>

1. Delete original code.
2. Add 2 tables(One maps flow pattern and RSS type to PCTYPE, another maps RSS type to input set).
3. Parse RSS pattern and RSS type to get PCTYPE.
4. Parse RSS action to get queues, RSS function and hash field.
5. Create and destroy RSS filters.
6. Create new files for hash flows.
7. Update doc correct some wrong descriptions.

---
 doc/guides/nics/i40e.rst       |    4 +-
 drivers/net/i40e/i40e_ethdev.c |  840 ++++++------------------
 drivers/net/i40e/i40e_ethdev.h |   53 +-
 drivers/net/i40e/i40e_flow.c   |  617 +-----------------
 drivers/net/i40e/i40e_hash.c   | 1379 ++++++++++++++++++++++++++++++++++++++++
 drivers/net/i40e/i40e_hash.h   |   34 +
 drivers/net/i40e/meson.build   |    1 +
 7 files changed, 1661 insertions(+), 1267 deletions(-)
 create mode 100644 drivers/net/i40e/i40e_hash.c
 create mode 100644 drivers/net/i40e/i40e_hash.h
doc/guides/nics/i40e.rst +2 -2
index 4e5c467..64f20e7 100644
@@ -562,9 +562,9 @@ Generic flow API
 - ``RSS Flow``
 
   RSS Flow supports to set hash input set, hash function, enable hash
-  and configure queue region.
+  and configure queues.
   For example:
-  Configure queue region as queue 0, 1, 2, 3.
+  Configure queues as queue 0, 1, 2, 3.
 
   .. code-block:: console
 
drivers/net/i40e/i40e_ethdev.c +193 -647

981 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev.h +39 -14

118 lines not on this page · raw message

drivers/net/i40e/i40e_flow.c +13 -604

671 lines not on this page · raw message

drivers/net/i40e/i40e_hash.c new file +1379 -0

1,219 lines not on this page · raw message

drivers/net/i40e/i40e_hash.h new file +34 -0
new file mode 100644
index 0000000..ff8c91c

Lines of this file are not shown. View the raw message.

drivers/net/i40e/meson.build +1 -0
index bb0c542..882168c 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.8.3.1

Part of the diff is not shown here. View the raw message.