Skip to content

Support configuring hash functions

Helin Zhang dpdk-dev 9 versions – Applied

Status from this message: Applied

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest5 patches 3 repliesApplied
  2. v84 patches 4 repliesSuperseded
  3. v74 patches 1 replySuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v63 patches2 repliesSuperseded
v55 patches17 repliesSuperseded
v47 patches4 repliesSuperseded
v37 patches0 repliesSuperseded
v26 patches6 repliesSuperseded
v15 patches11 repliesSuperseded

Changes in v9 from the cover letter

* Added typo fixes in rte_eth_ctrl.h.
* Splitted modifications in both rte_eth_ctrl.h and i40e, one patch is for ethdev, the other one is for i40e.

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/5i40e: use constant as the default hash keyslib/librte_pmd_i40e/i40e_ethdev.c+7 -70 replies
2/5ethdev: code style fixeslib/librte_ether/rte_eth_ctrl.h+4 -50 replies
3/5ethdev: support of configuring hash functionslib/librte_ether/rte_eth_ctrl.h+63 -00 replies
4/5i40e: support of controlling hash functionslib/librte_pmd_i40e/i40e_ethdev.c+292 -20 replies
5/5app/testpmd: add commands to support hash functionsapp/test-pmd/cmdline.c+333 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [PATCH v9 0/5] Support configuring hash functions

These patches mainly support configuring hash functions. In detail,
- It can get/set global hash configurations.
* Get/set symmetric hash enable per flow type.
* Get/set hash function type.
- It can get/set symmetric hash enable per port.
- Four commands have been implemented in testpmd to support testing above.
* get_sym_hash_ena_per_port
* set_sym_hash_ena_per_port
* get_hash_global_config
* set_hash_global_config

It also uses constant hash keys to replace runtime generating hash keys. Global initialization is added to correctly put registers to an initial state.

v3 changes:
* Removed renamings in rte_ethdev.h.
* Redesigned filter control API and its relevant structures/enums.
* Renamed header file from rte_eth_features.h to rte_eth_ctrol.h.
* Remove public header file of rte_i40e.h specific for i40e.
* Added hardware initialization function during port init.
* Used constant random hash keys in i40e PF.
* renamed the commands in testpmd based on the redesigned filter control API.

v4 changes:
* Fixed a bug in testpmd to support 'set_sym_hash_ena_per_port'.

v5 changes:
* Integrated with filter API defined recently.
* Remove all for filter API definition, as it has already defined and merged recently.

v6 changes:
* Flow type strings are used to replace Packet Classification Types, to isolate hardware specific things.
* Implemented the mapping function to convert RSS offload types to Packet Classification Types, to isolate the real hardware specific things.
* Removed initialization of global registers in i40e PMD, as global registers shouldn't be initialized per port.
* Added more annotations to get code more understandable.
* Corrected annotation format for documenation.

v7 changes:
* Removed swap configurations, as it is not allowed by hardware design.
* Put symmetric hash per flow type and hash function type into 'RTE_ETH_HASH_FILTER_GLOBAL_CONFIG', as they are controlling global registers which will affects all the ports of the same NIC.

v8 changes:
* Removed redundant checks in i40e_ethdev.c.
* Solved compile errors on ICC.

v9 changes:
* Added typo fixes in rte_eth_ctrl.h.
* Splitted modifications in both rte_eth_ctrl.h and i40e, one patch is for ethdev, the other one is for i40e.

Helin Zhang (5):
i40e: use constant as the default hash keys
ethdev: code style fixes
ethdev: support of configuring hash functions
i40e: support of controlling hash functions app/testpmd: add commands to support hash functions

 app/test-pmd/cmdline.c            | 333 ++++++++++++++++++++++++++++++++++++++
 lib/librte_ether/rte_eth_ctrl.h   |  72 ++++++++-
 lib/librte_pmd_i40e/i40e_ethdev.c | 308 +++++++++++++++++++++++++++++++++--
 3 files changed, 699 insertions(+), 14 deletions(-)
Signature · 1 line
1.8.1.4