From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34F2646823; Thu, 29 May 2025 17:35:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0B5B402C1; Thu, 29 May 2025 17:35:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id B4CF94021F for ; Thu, 29 May 2025 17:35:00 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 54TDqfVD003907; Thu, 29 May 2025 08:34:58 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=T s/JHaz+N0lGCjjIYIA9HoZZ+mKhjPoffPXWm9zWcX8=; b=YFgItoW4cCpsmiBLm mdgQDeNtwfZnLbSZIjcc6L6MvBAc2N9BRP3qTovawxN6hDHFiNw2deyWa0lnwdEj jJR/uBCgTOf5XbRdt1txjUHCe3jakf9/d0SbNL2GnViRvAjEtZFkHi+2uG04dVhG UwEwT0muObglwyhDdCxmJBTG3mN6YzFZpgdhMb9qeyBZFmO8MD8BGDdS5MsGUEV0 ZldxoLZKyUczvsWImTpDIReXlWJrN/BwK7eyTcl4HxijBkAv0wLoTcWZqH4ieyx9 DTNUo66vLwAnAdz4V8QciMkWCjcvWbOVzPJrQ156RMdo2HpgrcvmazUNo4TjWHHY bL51g== Received: from dc5-exch05.marvell.com ([199.233.59.128]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 46xc7h9r7e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 May 2025 08:34:57 -0700 (PDT) Received: from DC5-EXCH05.marvell.com (10.69.176.209) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 29 May 2025 08:34:56 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH05.marvell.com (10.69.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 29 May 2025 08:34:56 -0700 Received: from cavium-System-Product-Name.. (unknown [10.28.37.22]) by maili.marvell.com (Postfix) with ESMTP id 63ED83F70AB; Thu, 29 May 2025 08:34:54 -0700 (PDT) From: To: Aman Singh , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko CC: , Kiran Kumar K Subject: [PATCH v7 1/2] ethdev: support RSS based on RoCEv2 header Date: Thu, 29 May 2025 21:04:50 +0530 Message-ID: <20250529153451.1552174-1-kirankumark@marvell.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250505055717.3697335-1-kirankumark@marvell.com> References: <20250505055717.3697335-1-kirankumark@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: ikQuI1-OYiwDKV0zzu3cxrDqcR-5ECiW X-Proofpoint-ORIG-GUID: ikQuI1-OYiwDKV0zzu3cxrDqcR-5ECiW X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTI5MDE1MSBTYWx0ZWRfX+nem0H7vxD9M HinS2wAeILtg5xPuO9Ly+qiG8MHQ7Pez59FvDWStnaZJeIqQscH2GggcP7qf9hFrJkE8qzkQSKj 3OpslKpLnoqQpKjdyjVemTNYCQT39pl73gPBbNyVWvYxMaBWDRJPBG9AFms+KMz5r6C7NEylOQy L2DwdZKbhgpBzsYnz8yhwci7gta+kP5zOSHSVYNDRb0InwegqE91s/OMJPl54Y9CintrAQ8sbgL 5SPiQwjGSgqMTLKWhmYqDWu4srlspHAijpI5w9F+CUsqVYEMWYdcujWHMqW1WovwAT2nrR9oIJY 11DzPE/sofJFxB5SPeajT46mYcti5hGgjIO0OnVtiTJw5mOg+gmlR1fzmj0KC7emI8ooZCMF7+b A88esP1KJIh+ffM03EIsf93CSwappmUQh3uqZCdyy+4VEuFqWPiMUOdwYhlACwIlcC+uXtUC X-Authority-Analysis: v=2.4 cv=QcBmvtbv c=1 sm=1 tr=0 ts=68387ea1 cx=c_pps a=rEv8fa4AjpPjGxpoe8rlIQ==:117 a=rEv8fa4AjpPjGxpoe8rlIQ==:17 a=dt9VzEwgFbYA:10 a=M5GUcnROAAAA:8 a=C5gxgng_NU4p8u1cKgkA:9 a=OBjm3rFKGHvpk9ecZwUJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-29_08,2025-05-29_01,2025-03-28_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Kiran Kumar K On supporting hardware, RoCEv2 header can be used to perform RSS in the ingress path. Signed-off-by: Kiran Kumar K --- 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