[PATCH v7 1/2] ethdev: support RSS based on RoCEv2 header
kirankumark at marvell.com
kirankumark at marvell.com
Thu May 29 17:34:50 CEST 2025
From: Kiran Kumar K <kirankumark at marvell.com>
On supporting hardware, RoCEv2 header can be used to
perform RSS in the ingress path.
Signed-off-by: Kiran Kumar K <kirankumark at marvell.com>
---
V7 Changes;
* Addressed review comments related to rss_type_table.
app/test-pmd/config.c | 4 +++-
doc/guides/rel_notes/release_25_07.rst | 32 +++-----------------------
lib/ethdev/rte_ethdev.h | 2 ++
3 files changed, 8 insertions(+), 30 deletions(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index e89af21cec..5cc82a68aa 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -92,7 +92,8 @@ const struct rss_type_info rss_type_table[] = {
{ "all", RTE_ETH_RSS_ETH | RTE_ETH_RSS_VLAN | RTE_ETH_RSS_IP | RTE_ETH_RSS_TCP |
RTE_ETH_RSS_UDP | RTE_ETH_RSS_SCTP | RTE_ETH_RSS_L2_PAYLOAD |
RTE_ETH_RSS_L2TPV3 | RTE_ETH_RSS_ESP | RTE_ETH_RSS_AH | RTE_ETH_RSS_PFCP |
- RTE_ETH_RSS_GTPU | RTE_ETH_RSS_ECPRI | RTE_ETH_RSS_MPLS | RTE_ETH_RSS_L2TPV2},
+ RTE_ETH_RSS_GTPU | RTE_ETH_RSS_ECPRI | RTE_ETH_RSS_MPLS | RTE_ETH_RSS_L2TPV2 |
+ RTE_ETH_RSS_IB_BTH},
{ "none", 0 },
{ "ip", RTE_ETH_RSS_IP },
{ "udp", RTE_ETH_RSS_UDP },
@@ -149,6 +150,7 @@ const struct rss_type_info rss_type_table[] = {
{ "l3-dst-only", RTE_ETH_RSS_L3_DST_ONLY },
{ "l3-src-only", RTE_ETH_RSS_L3_SRC_ONLY },
{ "ipv6-flow-label", RTE_ETH_RSS_IPV6_FLOW_LABEL },
+ { "ib-bth", RTE_ETH_RSS_IB_BTH },
{ NULL, 0},
};
diff --git a/doc/guides/rel_notes/release_25_07.rst b/doc/guides/rel_notes/release_25_07.rst
index 6b070801de..6f72293fd1 100644
--- a/doc/guides/rel_notes/release_25_07.rst
+++ b/doc/guides/rel_notes/release_25_07.rst
@@ -24,36 +24,10 @@ DPDK Release 25.07
New Features
------------
-.. This section should contain new features added in this release.
- Sample format:
+* **Added new RSS offload types for IB_BTH in RSS flow.**
- * **Add a title in the past tense with a full stop.**
-
- Add a short 1-2 sentence description in the past tense.
- The description should be enough to allow someone scanning
- the release notes to understand the new feature.
-
- If the feature adds a lot of sub-features you can use a bullet list
- like this:
-
- * Added feature foo to do something.
- * Enhanced feature bar to do something else.
-
- Refer to the previous release notes for examples.
-
- Suggested order in release notes items:
- * Core libs (EAL, mempool, ring, mbuf, buses)
- * Device abstraction libs and PMDs (ordered alphabetically by vendor name)
- - ethdev (lib, PMDs)
- - cryptodev (lib, PMDs)
- - eventdev (lib, PMDs)
- - etc
- * Other libs
- * Apps, Examples, Tools (if significant)
-
- This section is a comment. Do not overwrite or remove it.
- Also, make sure to start the actual text at the margin.
- =======================================================
+ Added ``RTE_ETH_RSS_IB_BTH`` macro so that the RoCE Infiniband base transport header
+ can be used as input set for RSS.
* **Added burst mode query function to Intel drivers.**
diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h
index ea7f8c4a1a..8e0c89581e 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib/ethdev/rte_ethdev.h
@@ -602,6 +602,8 @@ struct rte_eth_rss_conf {
#define RTE_ETH_RSS_L2TPV2 RTE_BIT64(36)
#define RTE_ETH_RSS_IPV6_FLOW_LABEL RTE_BIT64(37)
+/** RoCE InfiniBand Base Transport Header */
+#define RTE_ETH_RSS_IB_BTH RTE_BIT64(38)
/*
* We use the following macros to combine with above RTE_ETH_RSS_* for
--
2.48.1
More information about the dev
mailing list