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 6FF4142B6D; Mon, 22 May 2023 09:01:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 017A9410DD; Mon, 22 May 2023 09:01:57 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 32242410D1 for ; Mon, 22 May 2023 09:01:56 +0200 (CEST) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 9375450; Mon, 22 May 2023 10:01:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 9375450 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1684738915; bh=YMdG8zkvVDQLlGtq5i/fhbaiFRNUl5+Fw+1eqnfF7uU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=X2OJ3cCpIUpk+ZjvBitBHuxHyWHqYkW4O8C3/JNk7wnT3OvPBUX0+tj9uX14tU/OS 1rwADg1Ca+7pIxE7WmDNRVBAxSAsY9nIh3Sj5xo0wR7K9GTJm75+ByDMi78qTCUeCX hT+DudFb7BqTPNj4HgrJco1QFjogpBBb1kM98Su8= Message-ID: Date: Mon, 22 May 2023 10:01:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v1 1/3] ethdev: add flow item for RoCE infiniband BTH Content-Language: en-US To: Ori Kam , Bill Zhou , Slava Ovsiienko , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Aman Singh , Yuying Zhang , Ferruh Yigit , Olivier Matz Cc: "dev@dpdk.org" , Raslan Darawsheh References: <20230511075504.664871-1-dongzhou@nvidia.com> <20230511075504.664871-2-dongzhou@nvidia.com> From: Andrew Rybchenko Organization: OKTET Labs In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/17/23 20:06, Ori Kam wrote: > Hi Bill, > >> -----Original Message----- >> From: Bill Zhou >> Sent: Thursday, May 11, 2023 10:55 AM >> Subject: [PATCH v1 1/3] ethdev: add flow item for RoCE infiniband BTH RoEC should be added devtools/words-case.txt IB as well. >> >> 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 ethernet -> Ethernet (4 times above) >> 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