Skip to content

add support for RSS level

Ajit Khaparde dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ethdev: add RSS hash levellib/librte_ethdev/rte_ethdev.h+27 -06 replies
2/3app/testpmd: support RSS hash level settingapp/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/parameters.c +2 more+208 -10 replies
3/3net/bnxt: add support to set RSS hash leveldrivers/net/bnxt/bnxt.h drivers/net/bnxt/bnxt_ethdev.c drivers/net/bnxt/bnxt_hwrm.c +3 more+97 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [dpdk-dev] [PATCH 0/3] add support for RSS level

Some of NICs can allow a DPDK application to select the RSS level to perform RSS hash on an incoming encapsulated packets. But it is not possible to set this currently because rte_eth_rss_conf does not have any field to indicate the RSS level while specifying RSS configuration parameters.

This patchset extends rte_eth_rss_conf by adding rss_level. An application can specify the RSS level based on the packet encapsulation level and apply the setting to the specified device.

- rss_level of 0 requests the default behavior.
- rss_level of 1 requests RSS to be performed on the outermost packet encapsulation level.
- rss_level of 2 and subsequent values request RSS to be performed on the specified inner packet encapsulation level, from outermost to innermost.

Patch 1/3 extends rte_ethdev.h to add this support.
Patch 2/3 has modifications to testpmd to use this feature. Patch 3/3 has bnxt modifications to configure rss_level based on the settings passed by the application.

Please review.

Ajit Khaparde (3):
ethdev: add RSS hash level
app/testpmd: support RSS hash level setting
net/bnxt: add support to set RSS hash level

 app/test-pmd/cmdline.c         | 187 +++++++++++++++++++++++++++++++++
 app/test-pmd/config.c          |   7 ++
 app/test-pmd/parameters.c      |   6 +-
 app/test-pmd/testpmd.c         |   8 ++
 app/test-pmd/testpmd.h         |   1 +
 drivers/net/bnxt/bnxt.h        |   1 +
 drivers/net/bnxt/bnxt_ethdev.c |   7 ++
 drivers/net/bnxt/bnxt_hwrm.c   |   9 +-
 drivers/net/bnxt/bnxt_rxq.c    |   3 +
 drivers/net/bnxt/bnxt_vnic.c   |  75 +++++++++++++
 drivers/net/bnxt/bnxt_vnic.h   |   4 +
 lib/librte_ethdev/rte_ethdev.h |  27 +++++
 12 files changed, 332 insertions(+), 3 deletions(-)
Signature · 1 line
2.21.0 (Apple Git-122.2)