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 D78CCA31F3 for ; Sat, 19 Oct 2019 01:51:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BC7B11C07E; Sat, 19 Oct 2019 01:51:11 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 673FB1C07D for ; Sat, 19 Oct 2019 01:51:10 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Oct 2019 16:51:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,313,1566889200"; d="scan'208";a="186983551" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.117.17]) by orsmga007.jf.intel.com with ESMTP; 18 Oct 2019 16:51:08 -0700 Date: Sat, 19 Oct 2019 07:48:15 +0800 From: Ye Xiaolong To: Ciara Loftus Cc: dev@dpdk.org, kevin.laatz@intel.com, bruce.richardson@intel.com Message-ID: <20191018234815.GB44515@intel.com> References: <20190930164205.19419-1-ciara.loftus@intel.com> <20190930164205.19419-4-ciara.loftus@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190930164205.19419-4-ciara.loftus@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [PATCH v2 3/3] net/af_xdp: enable support for unaligned umem chunks 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 09/30, Ciara Loftus wrote: >This patch enables the unaligned chunks feature for AF_XDP which allows >chunks to be placed at arbitrary places in the umem, as opposed to them >being required to be aligned to 2k. This allows for DPDK application >mempools to be mapped directly into the umem and in turn enable zero copy >transfer between umem and the PMD. > >This patch replaces the zero copy via external mbuf mechanism introduced >in commit e9ff8bb71943 ("net/af_xdp: enable zero copy by external mbuf"). >The pmd_zero copy vdev argument is also removed as now the PMD will >auto-detect presence of the unaligned chunks feature and enable it if so >and otherwise fall back to copy mode if not detected. > >Signed-off-by: Ciara Loftus >Signed-off-by: Kevin Laatz >--- > doc/guides/nics/af_xdp.rst | 2 +- > doc/guides/rel_notes/release_19_11.rst | 4 + > drivers/net/af_xdp/rte_eth_af_xdp.c | 402 ++++++++++++++++++++----- > 3 files changed, 325 insertions(+), 83 deletions(-) > Reviewed-by: Xiaolong Ye