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 8E68FA04B6; Thu, 24 Sep 2020 17:30:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 50FB21DDF6; Thu, 24 Sep 2020 17:30:33 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A10541DDC9 for ; Thu, 24 Sep 2020 17:30:31 +0200 (CEST) IronPort-SDR: XjdxXZAWcNxf+2ZBI4n+LKloFISc2y+ps7TfcrAqXzCoPUZeIfDWQ7n4DoJkE1IWMdCdRDYEBd gxB10OW/eUuw== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="162141460" X-IronPort-AV: E=Sophos;i="5.77,298,1596524400"; d="scan'208";a="162141460" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 08:30:31 -0700 IronPort-SDR: C08LJXGjosa/+1XAJBaUGe/DvxqUEoBYnYDbQDF9e13QUIUwec/XmDtmh4tlftCOLQ8mwt1l1J spP3df6Oi65g== X-IronPort-AV: E=Sophos;i="5.77,298,1596524400"; d="scan'208";a="512206582" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.251.85.112]) ([10.251.85.112]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 08:30:26 -0700 To: Ciara Loftus , dev@dpdk.org References: <20200923073439.12485-1-ciara.loftus@intel.com> <20200923073439.12485-2-ciara.loftus@intel.com> From: Ferruh Yigit Message-ID: Date: Thu, 24 Sep 2020 16:30:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <20200923073439.12485-2-ciara.loftus@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH v3 1/1] net/af_xdp: shared UMEM support 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 9/23/2020 8:34 AM, Ciara Loftus wrote: > Kernel v5.10 will introduce the ability to efficiently share a UMEM > between AF_XDP sockets bound to different queue ids on the same or > different devices. This patch integrates that functionality into the AF_XDP > PMD. > > A PMD will attempt to share a UMEM with others if the shared_umem=1 vdev > arg is set. UMEMs can only be shared across PMDs with the same mempool, up > to a limited number of PMDs goverened by the size of the given mempool. > Sharing UMEMs is not supported for non-zero-copy (aligned) mode. > > The benefit of sharing UMEM across PMDs is a saving in memory due to not > having to register the UMEM multiple times. Throughput was measured to > remain within 2% of the default mode (not sharing UMEM). > > A version of libbpf >= v0.2.0 is required and the appropriate pkg-config > file for libbpf must be installed such that meson can determine the > version. Tested providing the devarg when kernel/library support is not there cause gracefully exit. Not able to test the functionality, relying Ciara on it. > > Signed-off-by: Ciara Loftus Applied to dpdk-next-net/main, thanks.