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 <[email protected]> Signed-off-by: Scott Mitchell <[email protected]> --- 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)

