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 AE91742BEA; Wed, 31 May 2023 05:22:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C6DB4161A; Wed, 31 May 2023 05:22:56 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2042.outbound.protection.outlook.com [40.107.96.42]) by mails.dpdk.org (Postfix) with ESMTP id B9F8D40ED7 for ; Wed, 31 May 2023 05:22:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K76MRKjQwsbgO1AMWaDi9a68lJWe3jh1FYSzK3a7Zb7DQv+OrSHtKbgj5xIGH/cssbn+vmluvZumdeeTe3Me64utF9LqQxJNunw55sgQ6mZEgXEApqlh//GLN4S+3sSthV+RNwVGtAPFQCgzcGdmM1wrsI63dhLO9mPnzbNGBrjOV+DGsvCb6NZwMnFDbIwoYwYMPjyiDdvyZhHlB6BhnNmx/fnDcUEg6CIAHBPktJPBvzYFcnFKa45KXd4Szbco+/uNVBwnrpDWCviQVOFA91ujI0Ni/Vg9X6qnPFdKnRda5vAOWziN87PoRBCoXi/IXgulDJTZFY+nASBpq1G2zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KIvvWp7JfeV/qWmqDUz0apXnjGvNrziCGVNxytPSw0o=; b=QmG608vB3Q6ydqTi46r9ya5TAqt3HOgatRAbDA4Mc7qUFVlnsEyv908hSGQiN2uDlXbpdkLFx+0RNhP60yg3GtF/1OR6ldhh5dpd9mVo/LbDFvIB0ngZjrnR1aMC2ifJQdDVzm77cOb/K5YrCljMi1HReZXFWJRdLPPBt/yAyB2SKlFMKE7o74niI4+hwDr4v399/j9V/MPLQ0oV8S4Aj1/fpE/+sQ57dXP4JrlnKBRUiB5wyV994cecybn/yApYRqlNH/joQRTz4qfZNIxKs1NppLEcSib4onzqrY9zhsABP2pLUqeNkGE46nU51uc8gx775cjV8vcbyuSEmc+Saw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KIvvWp7JfeV/qWmqDUz0apXnjGvNrziCGVNxytPSw0o=; b=K3VhyR8uHRF8cnLeDRW7KWK7YnC0m7JUqq0PIdCrZs1WZaAoQ5JpIcSK7MZPkuraGj91LHKKRFxp1Ts/uof9JDxHylIq58MRm7an8D8kz6ULVmOjla6Z1fAtfsbE7ip/25Sy61K5H7Kv0Y3D5gP+bCGbIKqIue8iosn7m9OjdMfQdWmDYzmdXJh3R03A52e1uQdMnTrMCr9BjgWYymSejbDX2/uIlT+rB3Z+NaIpMtfTGS2hv0EC4i6KwRD5Bmrw2exJUuw9NjFfGOqH+ZEyGSyQ+jk7NbqGAMshq4VchJP07llZ/jXD02lSNMPw5y5Zvz1NMMnDvBaaP/OEoc1D6w== Received: from BY3PR10CA0025.namprd10.prod.outlook.com (2603:10b6:a03:255::30) by BL0PR12MB4961.namprd12.prod.outlook.com (2603:10b6:208:1c9::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.24; Wed, 31 May 2023 03:22:54 +0000 Received: from DM6NAM11FT071.eop-nam11.prod.protection.outlook.com (2603:10b6:a03:255:cafe::2) by BY3PR10CA0025.outlook.office365.com (2603:10b6:a03:255::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.22 via Frontend Transport; Wed, 31 May 2023 03:22:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DM6NAM11FT071.mail.protection.outlook.com (10.13.173.48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.22 via Frontend Transport; Wed, 31 May 2023 03:22:52 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 30 May 2023 20:22:45 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 30 May 2023 20:22:43 -0700 From: Dong Zhou To: , CC: Subject: RE: [PATCH v4] ethdev: add flow item for RoCE infiniband BTH Date: Wed, 31 May 2023 06:22:34 +0300 Message-ID: <20230531032234.3037373-1-dongzhou@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT071:EE_|BL0PR12MB4961:EE_ X-MS-Office365-Filtering-Correlation-Id: f0ca9900-589f-4ae9-8163-08db618651f1 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7jJgwJDU9LLmQBetlTtohqb51s9pRoek+4A97mxy4hUiu8aTZJ23qkilB4uRojSplki+AR4dnghfSVwzKP2NP4DP29Rv+h0E5HxrUOm+H6OiQYmAdgCyZipRShbPdxZfiYfGHRztH5KDMMpiyqNL/tdu/E3GLGPMhj5XaGZ/LQIF35gNG1jd5apYPOWB3aFF3RyIbOnPGSzQVkQG+jdjv4RQoZu8zO8PInfW7I0GXIPxy7FmdnIUtoFw9mXDEiantRYxDPAzUvSvJz4uiWKKFUsfQUdRbfdn136oco47HFtSQEVGOAKUgi/+MbC2rLmrfm98a5RP3Zmv79QEuDXPUrcK33dpzc7z6CJSgnVSXenq8Mkc9YdOcwz1srYFzf2UOBUe07ShVoQABpPhx5F/Qe614Q+9DQFYYl6yJdOFHfNC4exOspOzWJuiqKrSq1T4XqyfqieK/0UpfAK4M+peUTsjyQ74tumBGjSxXpplpBoDvBcIe1ymH2x2juNC8164gKYOGdAS8VmDnHqc813Fn29NgQ6waNwf+PeSDTV+tRuglaIGvpLGC/YbHd/TJfaf63QbcyvNnMw5BOWikQvZ6BZ2Nhw20I+3oZ9GdsCehqDgkgfkHdYqtpT0CrhEna1pJIuIaCkDG1TGHyDt8RjoyV7jN9vvrg+XIZMfbyX7nHMRbxLScENLCNPKMneFL9fOvIVU9Q4ktP+b/kiQdCTArehuWX2HK/iKQVH3A3cP5VaHoRe7VBU9vQCNVGDSFbe3 X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(376002)(39860400002)(136003)(396003)(346002)(451199021)(46966006)(36840700001)(40470700004)(4326008)(70206006)(70586007)(8676002)(8936002)(66574015)(47076005)(7636003)(36860700001)(316002)(5660300002)(41300700001)(110136005)(40460700003)(6286002)(7696005)(356005)(82740400003)(16526019)(6666004)(36756003)(186003)(426003)(336012)(82310400005)(2616005)(83380400001)(40480700001)(478600001)(2906002)(86362001)(26005)(53546011)(1076003)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2023 03:22:52.9944 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0ca9900-589f-4ae9-8163-08db618651f1 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT071.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4961 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 > -----Original Message----- > From: Ferruh Yigit > Sent: Wednesday, May 31, 2023 1:46 AM > To: Dong Zhou ; Ori Kam ; NBU- > Contact-Thomas Monjalon (EXTERNAL) ; Aman Singh > ; Yuying Zhang ; > Andrew Rybchenko ; Olivier Matz > > Cc: dev@dpdk.org > Subject: Re: [PATCH v4] ethdev: add flow item for RoCE infiniband BTH > > On 5/30/2023 4:06 AM, Dong Zhou wrote: > > IB(InfiniBand) is one type of networking used in high-performance > > computing with high throughput and low latency. Like Ethernet, IB > > defines a layered protocol (Physical, Link, Network, Transport > > Layers). IB provides native support for RDMA(Remote DMA), an extension > > of the DMA that allows direct access to remote host memory without CPU > > intervention. IB network requires NICs and switches to support the IB > > protocol. > > > > RoCE(RDMA over Converged Ethernet) is a network protocol that allows > > RDMA to run on Ethernet. RoCE encapsulates IB packets on Ethernet and > > has two versions, RoCEv1 and RoCEv2. RoCEv1 is an Ethernet link layer > > protocol, IB packets are encapsulated in the Ethernet layer and use > > Ethernet type 0x8915. RoCEv2 is an internet layer protocol, IB packets > > are encapsulated in UDP payload and use a destination port 4791, The > > format of the RoCEv2 packet is as follows: > > ETH + IP + UDP(dport 4791) + IB(BTH + ExtHDR + PAYLOAD + CRC) > > > > BTH(Base Transport Header) is the IB transport layer header, RoCEv1 > > and RoCEv2 both contain this header. This patch introduces a new RTE > > item to match the IB BTH in RoCE packets. One use of this match is > > that the user can monitor RoCEv2's CNP(Congestion Notification > > Packet) by matching BTH opcode 0x81. > > > > This patch also adds the testpmd command line to match the RoCEv2 BTH. > > Usage example: > > > > testpmd> flow create 0 group 1 ingress pattern > > eth / ipv4 / udp dst is 4791 / ib_bth opcode is 0x81 > > dst_qp is 0xd3 / end actions queue index 0 / end > > > > Signed-off-by: Dong Zhou > > Acked-by: Ori Kam > > Acked-by: Andrew Rybchenko > > > > v2: > > - Change "ethernet" name to "Ethernet" in the commit log. > > - Add "RoCE" and "IB" 2 words to words-case.txt. > > - Add "rte_byteorder.h" header file in "rte_ib.h" to fix compile errors. > > - Add "Acked-by" labels in the first ethdev patch. > > > > v3: > > - Do rebase to fix the patch apply failure. > > - Add "Acked-by" label in the second net/mlx5 patch. > > > > v4: > > - Split this series of patches, only keep the first ethdev patch. > > > > Patch looks good, can you please add a release notes update too? Sure, will send the v5 patch to update it.