[dpdk-dev] [PATCH 0/3] add support for RSS level
Ajit Khaparde
ajit.khaparde at broadcom.com
Sat Dec 7 01:59:16 CET 2019
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(-)
--
2.21.0 (Apple Git-122.2)
More information about the dev
mailing list