From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94C7B606A32D for ; Fri, 4 Dec 2026 16:07:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=y7fRm4/R Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0145740B92; Fri, 4 Dec 2026 17:07:22 +0100 (CET) Received: from mail-dl1-f42.google.com (mail-dl1-f42.google.com [74.125.82.42]) by mails.dpdk.org (Postfix) with ESMTPS id C95DF40A6C for ; Fri, 4 Dec 2026 17:07:19 +0100 (CET) Received: by mail-dl1-f42.google.com with SMTP id a92af1059eb24-1b589050416so1253252c88.0 for ; Fri, 04 Dec 2026 08:07:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796400438; x=1797005238; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Ao8O4W0k9GZNCILNHAwQLRTxOHrc2wlnPiVKM9Z9IFs=; b=y7fRm4/RPw+DkYrwchhN46mJoawlDbaq2palSxs8RVxWKweeU3pc0nzKBQzK9slmBP 5WmnpCs0V0S60XRmb13NEwW2ndglp7QJwdnBP26fOx6hFfQXtOnot6JghFum5i8n2f05 YHDalEtdNigRs0SqXdzGTWrKb27tx6F83GfvHoZiI0rjx4Igb3lT9V6YD7zVPeZUdHMx jz4K8jwzeU/rMnMr4C2qroKshY3ajDLOA67RC/7riTnNsX1xE6gPSSOTOQ12L5DoMntk +xB28Xm1SkzC7/rhtAq1rCBheAHJYrBOYce27YqnrHXXH3bL1Byzx3DmRTBgyphyuZs3 yJAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796400438; x=1797005238; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Ao8O4W0k9GZNCILNHAwQLRTxOHrc2wlnPiVKM9Z9IFs=; b=g9Hlam6OB/4eP7hCs2a/pT+cONOHI4h7nMCW3R2m+K7dW2otJvigy9LLmtru8bf2/a eDXuLpBVBvl9ViXpgcb5kCSWkvd9NLFJ0LkKD0uMOzRe+5hKFLO/0zaz29aC2/S2StQs 0cABAyh0tElAhejwezYitv/YMljpnxY6z1e6Tby9+SU7Hyfpsyx4TcNK4MtSlo1XVq0x UEmaKfbguLCAcnIfcOQ1rCMdWx7vrsw6Jd7MMKXbJOXXXWawtAenu2UF10zXeCJtcCaX W8+rEfxtdBJbpuRJthjBqprpAxfpsyyfi1vA7Qpo3X23+LoKfuQ9mz1a93KYGE2bPH9b aGFA== X-Gm-Message-State: AB4q+uFHxY/xO62BH9XMq4hdP5a697VKgvqH1KHB7RviEK89tPbLaiqR czZgXPvNzjjWdZYpG/+M2vDgIuKY3Rkdg0fNMY0+iuluP+u9uXPJgQYYMOwd9w== X-Gm-Gg: AZFdTZfxx3/ahOzyT/d3i2reetRpxkJSpZSfFB0UjroGMj+dIJ4808GvTeswBdgx4qw AcU0cnS/7OC53AUbpx/95A5yMjIMRCo4QdAd457ey2jB1iDmro/wQMGk9GcMZcJNW6q4CvRWnF+ 2FAxqGKJDtJrQOS7z60dajoppf2NvAE7VCpUGwrw2x84NXVEF0rq0XeucCHuPLss7bZ4iSOhfeP FyifFZV5u9whUlHoeB2NGY5k26cfGNLjrPQJ75QEWTuOclbWWUqNt52SbE85Y8i8qQEZKIvfXx+ h1u0xa1E2L7mqqnNHO0iV4iF6N5l3q+nylg7gZFmSvvUqnfv6c+drQ9pQHxMXz+mxTHIN5gLa1a s1dx3vQ0AW3nRik6MPaDNS8/Sy+si7TSG/XIlHudKGqDEvfjjOH68010AnfrKXx6WrjIlP7n1dR 0+9dlmJYycBDejgFrhVYOws/AWLpCG8k4YBhBfQhILkboDasZv9F8yNPP27rmFQ9M/BMqu2OpOf Lf+bIxNZSr94rS5kVUS93WwwPFOIeOR0XAV5hD9g5nLhrq1oB6u5EnXLoyf76l9No1fPvDdR8fv TO+TCO/88DN91kZ5r1iAI+OMpxDcFlm+Z/yOdtlAHwPU77IZ0/q8nw3kPfQW0ECwpuqAHKD0ZTR h3DlgyKoVytT7hlWwblhoIBd70SD4r/k= X-Received: by 2002:a05:7301:4309:b0:387:4952:474c with SMTP id 5a478bee46e88-38752142299mr2386484eec.21.1796400437999; Fri, 04 Dec 2026 08:07:17 -0800 (PST) Received: from mac.com ([136.24.82.250]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3875224312fsm9334101eec.26.2026.12.04.08.07.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 04 Dec 2026 08:07:17 -0800 (PST) From: Scott Mitchell To: dev@dpdk.org Cc: stephen@networkplumber.org, thomas@monjalon.net, david.marchand@redhat.com, mb@smartsharesystems.com, Scott Mitchell Subject: [PATCH v5 1/3] config: detect liburing Date: Fri, 4 Dec 2026 08:07:12 -0800 Message-ID: <20261204160714.25381-2-scott.k.mitch1@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261204160714.25381-1-scott.k.mitch1@gmail.com> References: <20261203174302.1418-1-scott.k.mitch1@gmail.com> <20261204160714.25381-1-scott.k.mitch1@gmail.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Detect liburing once and set RTE_HAS_LIBURING, as done for libpcap, so drivers and libraries can share the check, and list it with the optional libraries. Version 2.4 is the oldest tested. Suggested-by: Stephen Hemminger Signed-off-by: Scott Mitchell --- Depends-on: series-40265 ("net/af_packet fixes and Tx features") config/meson.build | 6 ++++++ doc/guides/linux_gsg/sys_reqs.rst | 2 ++ 2 files changed, 8 insertions(+) diff --git a/config/meson.build b/config/meson.build index bfac1cd93d..6b60971bc3 100644 --- a/config/meson.build +++ b/config/meson.build @@ -301,6 +301,12 @@ if (pcap_dep.found() and cc.has_header('pcap.h', dependencies: pcap_dep) dpdk_extra_ldflags += '-l@0@'.format(pcap_lib) endif +# check for liburing +iouring_dep = dependency('liburing', version: '>= 2.4', required: false, method: 'pkg-config') +if iouring_dep.found() + dpdk_conf.set('RTE_HAS_LIBURING', 1) +endif + # for clang 32-bit compiles we need libatomic for 64-bit atomic ops if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false atomic_dep = cc.find_library('atomic', required: true) diff --git a/doc/guides/linux_gsg/sys_reqs.rst b/doc/guides/linux_gsg/sys_reqs.rst index a3b23e8168..d6f105b926 100644 --- a/doc/guides/linux_gsg/sys_reqs.rst +++ b/doc/guides/linux_gsg/sys_reqs.rst @@ -85,6 +85,8 @@ For libraries the additional dependencies include: * libelf: to compile and use the bpf library. +* liburing (2.4 or later): for io_uring, used by the af_packet poll-mode driver. + For poll-mode drivers, the additional dependencies for each driver can be found in that driver's documentation in the relevant DPDK guide document, e.g. :doc:`/nics/index` -- 2.54.0 (Apple Git-157)