[v2,0/1] net/af_xdp: shared UMEM support
Message ID | 20200918112826.26659-1-ciara.loftus@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 <dev@dpdk.org>; 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 <ciara.loftus@intel.com> To: dev@dpdk.org Cc: Ciara Loftus <ciara.loftus@intel.com> 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Loftus, Ciara
Sept. 18, 2020, 11:28 a.m. UTC
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