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 6907542BD0; Tue, 30 May 2023 19:46:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 39750410EE; Tue, 30 May 2023 19:46:31 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2040.outbound.protection.outlook.com [40.107.100.40]) by mails.dpdk.org (Postfix) with ESMTP id 347EF410DD for ; Tue, 30 May 2023 19:46:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jG2nJHh+emLHckLOETw/JyMBnGUBF6FNqel+DTIXZZjAFJoBXlmbAaHKDYsqmYkc4zjaVboSbne1Q0KqZWaC+D5H2We3/B8xJKgmUTlLCiGV7k0N0Go1njqRK9GRVC3a01XhE4d91/9ZKda22ywSCNsX7Omy/zutChE2LxnzUdPKwNP4fcMsMyDEM9q8y6WeirKywRkr6ltEcWapk5z4RFzENcK0u38/32YcTsmA5SfgwvKQHWToxkvFZKfIRfOStMFz/PTtfsrwvVvuiBElCAq1Ss8YKyfz8gVy83WUTMBy23Clm02iLtlJuJfoBqmSFgaTyuJWiSSPymf1ntoRLQ== 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=CW/cZLC6hfLnx6ScQSzpV3BLn6a6rGrXCAvNJrT/d1w=; b=LktaRilhaeFQwIDn/thwGD6r+PJ6k79soBH2RXBgNw93xO7F6VBZXHu7BDSvesN6BvQZQypqCFjeMpfmd5X+GVwCIQz9aGyJQ1V2ntEtmie/0/DRBPCnCdB1/mlBKnPabmnlTL5zj/jQPScfhlxlZxDdRzNRnKabsbEibc6SkuPQXRbRVwj4FuiqOgzSBaQUb6P7PWkLRUJbONvRlrZyhZBWFLE5yXeat3yiP27rFej8KVfxwho5tyt71f0JDMqsY4FBSyMd5pYej+w4d9vuGoP8KtM88JfGnIA6UNK+cRq9UdwAsfRd3YKRJ3Lp5tXPhfsAMYyCO1u8HgcqHPCkqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CW/cZLC6hfLnx6ScQSzpV3BLn6a6rGrXCAvNJrT/d1w=; b=Whu5akRxZ/aRuftaRur2sOwb1SCCas9POTV9Yn/HcsQXkQ80nCliVxdm+K7muJtPFdjJNh/VrytLtJLhrEeJmPkI77kV/pZAPm8QBS6pcWMfF0QprMSMli6QMxLwgHTEJPDwzhZ8A22DTmcP34f/URqnxOfjsdX3wF82xoUKUos= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by IA1PR12MB6331.namprd12.prod.outlook.com (2603:10b6:208:3e3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Tue, 30 May 2023 17:46:27 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::7957:641d:6aba:3f9a]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::7957:641d:6aba:3f9a%4]) with mapi id 15.20.6433.022; Tue, 30 May 2023 17:46:27 +0000 Message-ID: Date: Tue, 30 May 2023 18:46:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v4] ethdev: add flow item for RoCE infiniband BTH Content-Language: en-US To: Dong Zhou , orika@nvidia.com, thomas@monjalon.net, Aman Singh , Yuying Zhang , Andrew Rybchenko , Olivier Matz Cc: dev@dpdk.org References: <20230525074041.2370704-1-dongzhou@nvidia.com> <20230530030620.2935042-1-dongzhou@nvidia.com> From: Ferruh Yigit In-Reply-To: <20230530030620.2935042-1-dongzhou@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0034.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ae::8) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|IA1PR12MB6331:EE_ X-MS-Office365-Filtering-Correlation-Id: a760a038-fd6a-481d-deb5-08db6135cb38 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5Mc7cSDx0TRmLj+xawFsgBvtsUYui7C5leKMohL7lKna9EF0kT/NwWiAhuzatGCyX+BVRNGxq/zsnDSvxZbCMCwoqeabJigThrCXerOF0L9+UXv1g/Y+bAl4nnDa84hfKkDr7ClDfkGx+YszKBlhomuTvCWrGNgo0lhiMYpanHfGV6TzJ6G2S0DH/8Vayae/qaks815dCt8ojlXK/YuO3/SpsmdEQ6o72MbhBHRajorD5fxcTj4cFDbi7bG+QCvH9W3efbXNEvpeRr+epS6YQUFWI38mKY9kBjmjGc6LEKsvruBAm5NMJwrNTo1Qtqml5GENLOSPJbD5ZgtnO9pB9uyG5Rt9yDFm0LaERCLUrH45UtWTbhQETc8kQx2uzXZNNrAt0JC/GC7Hg7qIiPi5K+YuddDWSCM6jXC9SD5BN5qAUVIk3yA4AUOZ/zovt//PI6uxM3QxsipRo6BDTxc+Qcqxag8fy/0IYpONgZpOFKNv73K4P4E8v1IqcTrB1SNRBA88vTweCas5YrxekRba1S2G3rCEpmn7cYVsvgZwHxBYAZxPT5jtv49PcU6wJoj+iObZfOICuWdXqPMHHQEJlMNcLbBHX/qBlGt8vtm29tM+j/TA/4sv16malcpa/XLOytaXFL/XkkJrx1X+IfZbGg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(451199021)(26005)(38100700002)(41300700001)(6486002)(6666004)(186003)(66574015)(83380400001)(31686004)(6506007)(53546011)(6512007)(2616005)(478600001)(110136005)(4326008)(66556008)(66946007)(316002)(66476007)(5660300002)(8676002)(8936002)(44832011)(86362001)(31696002)(2906002)(36756003)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NEYrbkZSNVZoRERBZ3Evc25aV0pRY1hIYmczZUFpaEtQQW1BZEpDeUI0dmor?= =?utf-8?B?bVdMVkd6UnFOTis5QzhnS2pHdHBnUVlUOUhNTTNXaGs2ZHQ4eFRNN3lWeC96?= =?utf-8?B?ZmdnS0xmb0FUUExnQUhzVWFzZ243eXk0ZmNRODBHTUlPMmhuWHZYYURNYlN5?= =?utf-8?B?TDJNRGErM0VkVWwvM0laQ3RNdVNFZFdtekZnNmY3TEdHMnRZSSthZnVZZ3pC?= =?utf-8?B?SjNMMkhIaUF1bUR1RTl3L0VWZUd0MFRObUFBWVZadkhwUWNLZHJJWjdYS2gz?= =?utf-8?B?Qm41RHVZU3l4eHExZXNVN1lMRGljYmVNOFpVZlVyOHlFTXJEQjBxMFBkTnd3?= =?utf-8?B?SXhxM1Y1YlJVNTdMSjVJeTNHTmJRR3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ossTenant-Network-Message-Id: a760a038-fd6a-481d-deb5-08db6135cb38 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2023 17:46:27.8020 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: V/fwmtCzvcNfVCxHpJl5ptHdt91DUhlBfx+sbiWh4Z7ax0nSujCPGBSuEUawlQtl X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6331 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 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?