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 640E2A04AF; Tue, 11 Aug 2020 12:14:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B44994C9D; Tue, 11 Aug 2020 12:14:31 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id B9C5B4C99 for ; Tue, 11 Aug 2020 12:14:29 +0200 (CEST) IronPort-SDR: fPtyJeZMmciY6ZGRHX74aV/RtmTZuAVRL0ePLFlE9ii5fJX3e+59YBc9171Lxnswj4kvyLelmi XmJ14PAxA2TQ== X-IronPort-AV: E=McAfee;i="6000,8403,9709"; a="141560409" X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="141560409" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2020 03:14:28 -0700 IronPort-SDR: xNoiHtwBAJhxpGLpuh8T5npC3SiLAc485HW/rNMfg0scp8WPyNlFSuqHxh+TTXl4Esjcx3pnvk J81eHx1RNhlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,460,1589266800"; d="scan'208";a="277535605" Received: from silpixa00399839.ir.intel.com (HELO localhost.localdomain) ([10.237.222.116]) by fmsmga008.fm.intel.com with ESMTP; 11 Aug 2020 03:14:27 -0700 From: Ciara Loftus To: dev@dpdk.org Cc: Ciara Loftus Date: Tue, 11 Aug 2020 09:50:16 +0000 Message-Id: <20200811095017.2682-1-ciara.loftus@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH RFC 0/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" This RFC integrates shared UMEM support into the AF_XDP PMD. It is based on the WIP kernel series [1] by Magnus Karlsson. Detailed information on the shared UMEM feature can be found in the final patch in the aforementioned series. Support for the kernel feature can eventually be detected in DPDK by querying the LINUX_KERNEL_VERSION. As of now the feature is not yet merged upstream, so for this RFC it is assumed the user is using a patched version of v5.8. Shared UMEM is only available for zero copy mode. In order to share UMEM information between PMDs, the ethdevs wishing to share must be tracked somehow. The method chosen to do so is similar to methods used in the vHost [2] and vDPA drivers, where pointers to the ethdevs are maintained in an internal list. Proposals for alternate solutions are welcome. Performance data to follow with the v1. [1] https://patchwork.ozlabs.org/project/netdev/cover/1595307848-20719-1-git-send-email-magnus.karlsson@intel.com/ [2] https://git.dpdk.org/dpdk/commit/?id=ee584e9710b9abd60ee9faef664e106dcea10085 Ciara Loftus (1): net/af_xdp: shared UMEM support doc/guides/nics/af_xdp.rst | 5 +- drivers/net/af_xdp/rte_eth_af_xdp.c | 315 ++++++++++++++++++++++------ 2 files changed, 252 insertions(+), 68 deletions(-) -- 2.17.1