From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0024C433FE for ; Sun, 9 Oct 2022 14:59:02 +0000 (UTC) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A94F1400D5; Sun, 9 Oct 2022 16:59:01 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 1041140042 for ; Sun, 9 Oct 2022 16:59:00 +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)) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 6E36966; Sun, 9 Oct 2022 17:58:59 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 6E36966 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1665327539; bh=76/MrOdNRdnAq+S3UeXTmNW2+7Crl8wZOGnJDaGnRDw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=nDWVemrDRtkYJGvhQtYRfPo2TJN34iFHzyey9+cLcSEDUP9Zfrc92BPySp47zQRX+ oi87UfRb0GBudjqZQeFdjIyGEleU2W/ik0tchvTN4KNeCEj1uwLZ82fN7NbZYcLwSf NAMS5vSDl3olOJKsAt/YYnNhg53TeesodfYl2Gmw= Message-ID: <496d162e-3663-758f-ff14-d2933cbcd621@oktetlabs.ru> Date: Sun, 9 Oct 2022 17:58:58 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v9 0/4] support protocol based buffer split Content-Language: en-US To: Yuan Wang , dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@xilinx.com, mdr@ashroe.eu, xiaoyun.li@intel.com, aman.deep.singh@intel.com, yuying.zhang@intel.com, qi.z.zhang@intel.com, qiming.yang@intel.com, jerinjacobk@gmail.com, viacheslavo@nvidia.com, stephen@networkplumber.org, xuan.ding@intel.com, hpothula@marvell.com, yaqi.tang@intel.com References: <20220812181552.2908067-1-yuanx.wang@intel.com> <20221009202541.352724-1-yuanx.wang@intel.com> From: Andrew Rybchenko Organization: OKTET Labs In-Reply-To: <20221009202541.352724-1-yuanx.wang@intel.com> 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 10/9/22 23:25, Yuan Wang wrote: > Protocol type based buffer split consists of splitting a received packet > into several separate segments based on the packet content. It is useful > in some scenarios, such as GPU acceleration. The splitting will help to > enable true zero copy and hence improve the performance significantly. > > This patchset aims to support protocol header split based on current buffer > split. When Rx queue is configured with RTE_ETH_RX_OFFLOAD_BUFFER_SPLIT > offload and corresponding protocol, packets received will be directly split > into different mempools. > > Change log: > v9: > Define the intend behaviors for exact match and longest match. > Add protocol headers repeat check. > Add no proto-split after length-based split check. > Add a helper function to short the check function. > Refine the doc and commit log. With few minor fixes, applied to dpdk-next-net/main, thanks.