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 A725B42BEF; Wed, 31 May 2023 10:47:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3680440ED7; Wed, 31 May 2023 10:47:32 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2087.outbound.protection.outlook.com [40.107.223.87]) by mails.dpdk.org (Postfix) with ESMTP id 00AA640A82 for ; Wed, 31 May 2023 10:47:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P1OEDmpvVQndXfmupFnctSVJqvkt9ESjR0E0poNu6NS/QFoqoOHW5EXjfuUspKM1n5UF9lECcpjsyOy8MPX6pXrlFlfhaRd4Hg7n1mYL2VmSdGdgvdFvKLNnificHrdOKRPWJ8wpjwc8wpYP0Niy4Ctv+OleW5GaGVcTIzgmhdYt/0/sq9MCIPR+v2553eWoYEQnC6SpUboPBMRXozBqNmh+ZIMRmF5Fw21YRaa+Tx68pXtohF5eiD9keGWbC+qBMf17PPEL0tM6q4KmGPLpxFU2olIcWiiELsk1rHoUuKl5ktxLYoJsTaQESez8butYhT2wBoSM7j9+IDQVdXPPfw== 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=v9dD0J/pzpw89ZszhzCpcMpCrdAuwiElE5akvzG7x4w=; b=bgs3UCov/ADsS/n6pRIYyBKWjaBt0WnACpQBHYvixjawA1QfnXcjhJpAOKB4QystMPrcGAiiU0ju5rRSzBvMXJxU4ekK16Sw0W/5SDniVQ0af4LbWPSSae2LDydL4P03lORWj0WVlbGGbQL1oSLvhd50lhojDVCVdC5QYWXsszqZkNJJ0SbB4AJ3yc8c0FYJDbo6kFrBab+JjMGM7KSsCErDJOgWuw3Jcq+5z2Akz2bS1vJcCNl1YKl4NgwGViMuJOqTGUvi+gej+CnbK0H6uzSVtOplCweUuqpsrHcgpc5L3mrvD6cEz77ApIHi2JsdHg5cTSb6R4e+SZRKLVTvHw== 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=v9dD0J/pzpw89ZszhzCpcMpCrdAuwiElE5akvzG7x4w=; b=uaPwjc9DUocSNZko/IriaxCYCMqP0Lh5iIKuRWo83rOOq/n1mBstHqyCwecVrajfZCW6vGqjRUx9a2BpTulJqG11JGeKspc9JdC6xDN3JVJVRQFm5Ix7O74b1y9rdaerwL+1UargKe7L11cXvB8uSKsUNnQ2DJcyuaNLEjS06c8= 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 DM4PR12MB5311.namprd12.prod.outlook.com (2603:10b6:5:39f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Wed, 31 May 2023 08:47:29 +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; Wed, 31 May 2023 08:47:29 +0000 Message-ID: <5a1ef163-c037-a16f-dff3-fd833d0a0f22@amd.com> Date: Wed, 31 May 2023 09:47:22 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 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> <20230531032653.3037946-1-dongzhou@nvidia.com> From: Ferruh Yigit Subject: Re: [PATCH v5] ethdev: add flow item for RoCE infiniband BTH In-Reply-To: <20230531032653.3037946-1-dongzhou@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0605.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:314::7) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DM4PR12MB5311:EE_ X-MS-Office365-Filtering-Correlation-Id: f1b96aeb-2ee4-42b1-8bb1-08db61b3aa40 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hP/2ZyWMlkPuKD32D0PkZzyHEOYHmvdjCUragTSbrLDQRaBn+t0uLW7fRT1XYw9ZUq9pORJw/llI9rOc87A70I0yKnGv6D2o+1hAytTje6feuLgisaDMwhgcuaYPsEoME+NLe1fxlX+6Sz+oBhoQHIxm/m1n166sfCQ79h4cmCbdp3iQeGT5FPw4MNYpEttEUL06QprdgTyGrUh5eTDf3MLxLMw3b7ZIkZlhWAHH9q4psyIRy6RHoCy4XA6ta4IBQVVHudsCnu2VMh2iyKCkVxpCjQguCoTWW7K0XG4ASl5bfmaivmc+oR7aswPU/IwGN4VoFXWfWw3L22P88P8V5WjuAv7fV8xjH1FJffPdFdxo8eoGzw4bhRWD0Wl51miHYmqNYNWrNXUj7Cd2Xs3T2/I6j/oNPFQ7mVXzJNasyRa8YdHVDvfFphZ17sdh/dDC2B5CVmRiZUJG1F9aDkzq8u3Oi4Sk8Dld/wNDJ9GSxFQ/TTFLzerHpSQRBLrqbg3goFfpX60drCmZB+kGiLo1qokotHA4o1Al73NCr4n0U8VfkO8CxaKhnw0vbpIYmgnungYHi+N2a/X2/TT39A/7AZjhVUWNuGlMP2SAgHQfqLakNWv+1TsxMGKvtSmYuKb7LdAEwVyLmUeRucOBYDDrvQ== 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)(366004)(376002)(346002)(136003)(396003)(451199021)(31686004)(38100700002)(41300700001)(316002)(6512007)(6666004)(31696002)(4326008)(86362001)(2906002)(8936002)(6486002)(8676002)(2616005)(66946007)(66476007)(66556008)(36756003)(53546011)(110136005)(44832011)(6506007)(26005)(83380400001)(478600001)(5660300002)(66574015)(186003)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L0tkcHFmYkk2N2pNVmYrUGlPSUZ0aGJZYS95aklocThMWU90RENuSjBkeC96?= =?utf-8?B?dDJubXFpZHR6RVJyeE84d0VrMFJHWEJ0YjRJNTlIRWNIL1hMWnVIQnBqY2Qw?= =?utf-8?B?R3VvWXFoYWNnQkJxY3IvVFBGQkxOcmJpT0drUnp1NFdPM3hBOW0vT0l1b1JD?= =?utf-8?B?bTRna1NEdWUxSkoweFFodEJYUU5lREh0MGVaSXRuOEl1aHhDc0w4RGtoU3E1?= =?utf-8?B?UHFlNlQ0d3h4YXBhcHhTMEluV1ZabU56VFJIc1V2TGtQcTRrb2huSHhvQjJ1?= =?utf-8?B?NnNneWh1a1Awd1llNW9LbyszWnZGUUl1SjV5c3dFaW9SOWpMblFMZlNoZGww?=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orOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1b96aeb-2ee4-42b1-8bb1-08db61b3aa40 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2023 08:47:28.9286 (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: GMSTnL6RK4Rjzbb5zbZ53biU7qwOp64TamQdmg1lMeihASEBobdpPmYEg4Fg3e3C X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5311 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/31/2023 4:26 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. > > v5: > - Update the release notes. > - Update the doxy-api-index.md file. > Applied to dpdk-next-net/main, thanks. (release notes warning fixed while merging.)