From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 67031A09E8; Tue, 8 Dec 2020 14:01:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB4C2C8FA; Tue, 8 Dec 2020 14:01:01 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 8E6F1C8F8 for ; Tue, 8 Dec 2020 14:01:00 +0100 (CET) IronPort-SDR: EcyzR2kgqaVn6QlZdQjwK4Kskrhwqbn18wvSzKR+VGHooNqBQEC19TOq7/VoZEcDgw5fX0AV7K djEfcQYZCnuQ== X-IronPort-AV: E=McAfee;i="6000,8403,9828"; a="237986853" X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="237986853" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 05:00:48 -0800 IronPort-SDR: rsN1hh87BRWATCcW5hPUhKa80/i5Ygs5nIrtUOfVDMiDQ4P/dPtz4TEnZNWOOa7mJ8LZLqt/AW UEPPivqZ8nuQ== X-IronPort-AV: E=Sophos;i="5.78,402,1599548400"; d="scan'208";a="317787174" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.231.143]) ([10.213.231.143]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2020 05:00:47 -0800 To: "Loftus, Ciara" , Li RongQing Cc: "dev@dpdk.org" References: <1606302092-20572-1-git-send-email-lirongqing@baidu.com> <240b885710cd4330abba4a44d786a23f@intel.com> From: Ferruh Yigit Message-ID: <38131c6c-91a9-c709-f1dc-16bc74652451@intel.com> Date: Tue, 8 Dec 2020 13:00:43 +0000 MIME-Version: 1.0 In-Reply-To: <240b885710cd4330abba4a44d786a23f@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH][v4] net/af_xdp: optimize RX path by removing the unneeded allocation mbuf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11/25/2020 1:03 PM, Loftus, Ciara wrote: >> Subject: [dpdk-dev] [PATCH][v4] net/af_xdp: optimize RX path by removing >> the unneeded allocation mbuf >> >> when receive packets, the max bunch number of mbuf are allocated >> if hardware does not receive the max bunch number packets, it >> will free redundancy mbuf, this is low performance >> >> so optimize rx performance, by allocating number of mbuf based on >> result of xsk_ring_cons__peek, to avoid to redundancy allocation, >> and free mbuf when receive packets >> >> and rx cached_cons must be rollbacked if fail to allocating mbuf, >> found by Ciara Loftus >> >> Signed-off-by: Li RongQing >> Signed-off-by: Dongsheng Rong > > Thanks for the v4. > > Acked-by: Ciara Loftus > Applied to dpdk-next-net/main, thanks.