[0/3] add support for RSS level
mbox series

Message ID 20191207005919.10962-1-ajit.khaparde@broadcom.com
Headers show
Series
  • add support for RSS level
Related show

Message

Ajit Khaparde Dec. 7, 2019, 12:59 a.m. UTC
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(-)