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 8C2FB606A330 for ; Thu, 3 Dec 2026 17:44:33 +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=O+dp4GRU Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06A8640653; Thu, 3 Dec 2026 18:44:26 +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 88FB8402A7 for ; Thu, 3 Dec 2026 18:44:24 +0100 (CET) Received: by mail-dl1-f42.google.com with SMTP id a92af1059eb24-1b5d5f3d5b8so33451c88.0 for ; Thu, 03 Dec 2026 09:44:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796319863; x=1796924663; 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=qj3auHbBxEQbfk0CJgJj8od0f4vsVVAkgCpDNdcOEks=; b=O+dp4GRUpK69lWINrpxbuoExlrM5nz8+r0ys5v1ZSQ5dhBM2g8p4ey3kWDizLP2cVb 4kSULAoRG20+YkQpl5INqYGZiDuiC5hT9RAyM2+BpZSixGiXOYoE8c2Tb4p9jxr6g8HL MdJgY/WTSN9zh/PiKYkfLAlzbcsLx5hwbajFmV42wUo1cSY1OtdJCevhtqu6orNkobfO K5bpGCLY/PiT5H2fHiWsflDuZUjq4F96WbZ1QP4vu+jKtzzI35L7l4tq+YlK8oA65prF IDnKZRYOBQ3LYRglRR/pwCJebfQf3lKIhXYn6IdCpzUtPvqnXaEI9vn7yDfFtxMRWkjZ Wbzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796319863; x=1796924663; 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=qj3auHbBxEQbfk0CJgJj8od0f4vsVVAkgCpDNdcOEks=; b=JiKsNXlijarH2DWg8NyohtWEsrNBgnPO/nn9HeGPGQwQkeuUE8FLDxmrPNc0hPdnRY p5d5jOyQAV9ZzM6qEYkQF7I0cZ3G80uqhAI9DJAMMQI4fW8hHpGuR/r3Ax6nG6T5X85R XxyN9sk4YhuijVYSn6bvbhiuArZwUbHssO7mswkBR5iB4qIfSi9dVcB4W/InZUjpODZf 6pPYBnsb80cGaXvNjNsT5BsHDMBBzDCAtMJOLIxyHDSrWUBMbHhxmHhatV2hvEVeFBbl jWbwC3BHoh2tD6flhnev82G+WA0lGEn77D2s75IRrHbgx21qHH6qL6iKTZzs66BME6q9 WQ+Q== X-Gm-Message-State: APuU4Z8UjG+bnohrWBtZCARl0/I0an3WhNkewGjWhgT+Sxk9D99tBl9r GjhaQzZZTU7ZK3c6wMks7pthxMGGnok1KSWTUaYH/IMIjm8hw+Ed3E9zbgft1A== X-Gm-Gg: AZFdTZcUse7pHHgPZ8iLN7GdD/gNEbGYbUv/abv9gIJOg7zmZi65kdELSBs6ihbjo2j e20iOl5QObZKbVRtcfD8JZnXg31eiKIZQtJjgl+N27SyI1FdfZWY8czoo+u5Klbw50FB2uVzka3 y6vxJA6+vz/eJxRyYu4b1QKgS5yyfYpmrw9J2OuhrgIAYXc6GEVQRl6kZcSmqJQTIxh554ALiK/ pVDyhwu2Mldu0MeiVudN86bblBYAJB3sMQHZyjioWVW5oTWX3yNp+Pry8RqC9lG/ZsF2u95m9ih gnsypXFqzNnCUNgwTp2vDzBFpxxCXwLZwn6AkF00Pm676BUvzYSC44PzQ9hYtvHtgPs2+LWsLVr sgHYq/VtICzNsFMygNC4+almvuaefngWWMJLvISlZJ+08L9ykTrv+P/n9651oWGhHO+RLVhksA7 iqje+r/VVCPIIPv/EYIPr9Qkqi85EXa6jbsELjPy4gP96q7XDlLKUtl47PuLfZhUyxJcsgr74hp CEoNYrNMqhuSjTCqRsEXXuTUb3buBc0IlNDTz10HjiKHpCVTzLvA2SGJI6bmE9A4dAv3U60KSjr 2gNgRNjeaiLP/SKzw6rAZBLjqE4s5WBGatHG12T5CrFCJ0nlStoXhoRXX1H2FSJK1PqkOQvGc1I lp+fnj/B3duWoF2LZMR2o79FrR5gf++k8yB3tTS/dVH7/qu64qZ6zCG4Gx+U= X-Received: by 2002:a05:7022:3c0e:b0:190:596:4071 with SMTP id a92af1059eb24-1b55689f722mr37143611c88.11.1796319862825; Thu, 03 Dec 2026 09:44:22 -0800 (PST) Received: from mr55p01nt-relayp01.apple.com ([17.199.97.123]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5569bffd2sm96788380c88.0.2026.12.03.09.44.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Dec 2026 09:44:22 -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 v4 1/3] config: detect liburing Date: Thu, 3 Dec 2026 09:43:00 -0800 Message-ID: <20261203174302.1418-2-scott.k.mitch1@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20261203174302.1418-1-scott.k.mitch1@gmail.com> References: <20261202185420.17858-1-scott.k.mitch1@gmail.com> <20261203174302.1418-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=-15.8 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-40254 ("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)