mbox

[v2,0/3] add ethdev op to get hash index

Message ID 20191015095207.13249-1-vattunuru@marvell.com (mailing list archive)
Headers

Message

Vamsi Krishna Attunuru Oct. 15, 2019, 9:52 a.m. UTC
  From: Vamsi Attunuru <vattunuru@marvell.com>

---
Following patch set adds ethdev op to fetch hash index from ethdev pmd
for a given hash value. It enables pmds to compute hash index using
HW supported custom algos.

Patch set also adds autotest for these API to verify whether packet
distribution is as per computed hash index or not.

V2 Change:
* Updated description in the commit message.

Vamsi Attunuru (3):
  lib/ethdev: add ethdev op to get hash index
  app/test: add hash index verify autotest
  net/octeontx2: add eth dev op callback to get hash index

 app/test/Makefile                        |   1 +
 app/test/autotest_data.py                |   6 +
 app/test/meson.build                     |   1 +
 app/test/test_hash_index.c               | 347 +++++++++++++++++++++++++++++++
 drivers/net/octeontx2/otx2_ethdev.c      |   1 +
 drivers/net/octeontx2/otx2_ethdev.h      |   3 +
 drivers/net/octeontx2/otx2_rss.c         |  18 ++
 lib/librte_ethdev/rte_ethdev.c           |  13 ++
 lib/librte_ethdev/rte_ethdev.h           |  20 ++
 lib/librte_ethdev/rte_ethdev_core.h      |   5 +
 lib/librte_ethdev/rte_ethdev_version.map |   3 +
 11 files changed, 418 insertions(+)
 create mode 100644 app/test/test_hash_index.c