* [PATCH] ethdev: support RSS based on RoCEv2 header
@ 2025-04-22 5:14 kirankumark
2025-04-23 0:06 ` Thomas Monjalon
2025-04-23 17:30 ` Stephen Hemminger
0 siblings, 2 replies; 3+ messages in thread
From: kirankumark @ 2025-04-22 5:14 UTC (permalink / raw)
To: Aman Singh, Thomas Monjalon, Ferruh Yigit, Andrew Rybchenko
Cc: dev, Kiran Kumar K
From: Kiran Kumar K <kirankumark@marvell.com>
On supporting hardware, RoCEv2 header can be used to
perform RSS in the ingress path.
Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
---
app/test-pmd/config.c | 4 +++-
lib/ethdev/rte_ethdev.h | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index e89af21cec..b6c7f032b0 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_ROCEV2},
{ "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 },
+ { "rocev2", RTE_ETH_RSS_ROCEV2},
{ NULL, 0},
};
diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h
index ea7f8c4a1a..e29a3c876d 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib/ethdev/rte_ethdev.h
@@ -602,6 +602,7 @@ struct rte_eth_rss_conf {
#define RTE_ETH_RSS_L2TPV2 RTE_BIT64(36)
#define RTE_ETH_RSS_IPV6_FLOW_LABEL RTE_BIT64(37)
+#define RTE_ETH_RSS_ROCEV2 RTE_BIT64(38)
/*
* We use the following macros to combine with above RTE_ETH_RSS_* for
--
2.48.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ethdev: support RSS based on RoCEv2 header
2025-04-22 5:14 [PATCH] ethdev: support RSS based on RoCEv2 header kirankumark
@ 2025-04-23 0:06 ` Thomas Monjalon
2025-04-23 17:30 ` Stephen Hemminger
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2025-04-23 0:06 UTC (permalink / raw)
To: Kiran Kumar K
Cc: Aman Singh, Ferruh Yigit, Andrew Rybchenko, dev,
Dariusz Sosnowski, Ori Kam
22/04/2025 07:14, kirankumark@marvell.com:
> From: Kiran Kumar K <kirankumark@marvell.com>
>
> On supporting hardware, RoCEv2 header can be used to
> perform RSS in the ingress path.
Do you mean IB BTH?
It would be good to adopt a unique name between RSS and flow matching:
RTE_FLOW_ITEM_TYPE_IB_BTH
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ethdev: support RSS based on RoCEv2 header
2025-04-22 5:14 [PATCH] ethdev: support RSS based on RoCEv2 header kirankumark
2025-04-23 0:06 ` Thomas Monjalon
@ 2025-04-23 17:30 ` Stephen Hemminger
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2025-04-23 17:30 UTC (permalink / raw)
To: kirankumark
Cc: Aman Singh, Thomas Monjalon, Ferruh Yigit, Andrew Rybchenko, dev
On Tue, 22 Apr 2025 10:44:59 +0530
<kirankumark@marvell.com> wrote:
> From: <kirankumark@marvell.com>
> To: Aman Singh <aman.deep.singh@intel.com>, Thomas Monjalon <thomas@monjalon.net>, Ferruh Yigit <ferruh.yigit@amd.com>, Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
> CC: <dev@dpdk.org>, Kiran Kumar K <kirankumark@marvell.com>
> Subject: [PATCH] ethdev: support RSS based on RoCEv2 header
> Date: Tue, 22 Apr 2025 10:44:59 +0530
> X-Mailer: git-send-email 2.48.1
>
> From: Kiran Kumar K <kirankumark@marvell.com>
>
> On supporting hardware, RoCEv2 header can be used to
> perform RSS in the ingress path.
>
> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
> ---
Please make this patch part of a series with hardware support on some device.
Not going to add it unless at least one in tree PMD supports it.
Also, you need to add a release note for this, and include documentation for the
device in question.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-23 17:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-22 5:14 [PATCH] ethdev: support RSS based on RoCEv2 header kirankumark
2025-04-23 0:06 ` Thomas Monjalon
2025-04-23 17:30 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).