From patchwork Fri Sep 18 11:28:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Loftus, Ciara" X-Patchwork-Id: 78097 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BCFC3A04C8; Fri, 18 Sep 2020 13:53:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 981791D99E; Fri, 18 Sep 2020 13:53:22 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 8FFC01D8EE for ; Fri, 18 Sep 2020 13:53:20 +0200 (CEST) IronPort-SDR: h9AxpCGMI6k8BxpU02yYOJd7utpo7ZjLdMnJqoG6kzhC/F0jXkrEfhHgbU+F2AT1LKzAxCHg5y HHL0hAQOmPIA== X-IronPort-AV: E=McAfee;i="6000,8403,9747"; a="221478388" X-IronPort-AV: E=Sophos;i="5.77,274,1596524400"; d="scan'208";a="221478388" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 04:53:19 -0700 IronPort-SDR: FV1UR0sfIUmr/lpPr2AiXKZZwKUfPbsDh/yb8Qx60rqaYkhY1QsN1PprOyHZS6Ar1uGOjLvlPX d12T7WL2X+jA== X-IronPort-AV: E=Sophos;i="5.77,274,1596524400"; d="scan'208";a="484175187" Received: from silpixa00399839.ir.intel.com (HELO localhost.localdomain) ([10.237.222.142]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 04:53:18 -0700 From: Ciara Loftus To: dev@dpdk.org Cc: Ciara Loftus Date: Fri, 18 Sep 2020 11:28:25 +0000 Message-Id: <20200918112826.26659-1-ciara.loftus@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2 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 patch integrates support for shared UMEMs into the AF_XDP PMD. The feature is currently available in the linux-next tree [1] and should be available in the v5.10 kernel. Detailed information on the shared UMEM feature can be found in the kernel documentation. Support for the kernel feature is detected in DPDK by querying the LINUX_KERNEL_VERSION and ensuring a kernel >= 5.10.0. Since this kernel is not yet released, if one wishes to test this patch now it is suggested to use the aforementioned linux-next tree and modify the version check to align with the version of that tree. Once the kernel is released (~December) this will no longer be necessary. [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=acabf32805f7 Ciara Loftus (1): net/af_xdp: shared UMEM support doc/guides/nics/af_xdp.rst | 6 +- drivers/net/af_xdp/compat.h | 41 ++++ drivers/net/af_xdp/meson.build | 4 + drivers/net/af_xdp/rte_eth_af_xdp.c | 302 ++++++++++++++++++++++------ 4 files changed, 288 insertions(+), 65 deletions(-) create mode 100644 drivers/net/af_xdp/compat.h