[PATCH] net/mana: fix dependencies
Thomas Monjalon
thomas at monjalon.net
Sun Oct 9 15:53:37 CEST 2022
The reason for not building is updated
to be consistent with other drivers.
The libibverbs was not detected through pkg-config.
The method dependency() needs to be used first.
The support in rdma-core and Linux is not released yet,
so the documentation is updated.
Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
---
doc/guides/nics/mana.rst | 6 ++++--
drivers/net/mana/meson.build | 9 ++++++---
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/doc/guides/nics/mana.rst b/doc/guides/nics/mana.rst
index 30e3fd1cb6..005c0b2ca7 100644
--- a/doc/guides/nics/mana.rst
+++ b/doc/guides/nics/mana.rst
@@ -29,7 +29,6 @@ and must be installed separately:
It allows slow and privileged operations
(context initialization, hardware resources allocations)
to be managed by the kernel and fast operations to never leave user space.
- The minimum required rdma-core version is v43.
In most cases, rdma-core is shipped as a package with an OS distribution.
User can also install the upstream version of the rdma-core from
@@ -40,7 +39,8 @@ and must be installed separately:
Low-level user space driver library
for Microsoft Azure Network Adapter devices,
it is automatically loaded by libibverbs.
- The minimum required version of rdma-core with libmana is v43.
+
+ The support of MANA is not merged in rdma-core 42.
- **Kernel modules**
@@ -56,6 +56,8 @@ and must be installed separately:
- mana_ib: InifiniBand device driver.
- ib_uverbs: user space driver for verbs (entry point for libibverbs).
+ The support of MANA is planned in Linux 6.2.
+
Driver compilation and testing
------------------------------
diff --git a/drivers/net/mana/meson.build b/drivers/net/mana/meson.build
index bdf526e846..493f0d26d4 100644
--- a/drivers/net/mana/meson.build
+++ b/drivers/net/mana/meson.build
@@ -3,7 +3,7 @@
if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64')
build = false
- reason = 'mana is supported on Linux X86_64'
+ reason = 'only supported on x86_64 Linux'
subdir_done()
endif
@@ -18,9 +18,12 @@ sources += files(
'tx.c',
)
-libnames = ['ibverbs', 'mana' ]
+libnames = ['ibverbs', 'mana']
foreach libname:libnames
- lib = cc.find_library(libname, required:false)
+ lib = dependency('lib' + libname, required:false)
+ if not lib.found()
+ lib = cc.find_library(libname, required:false)
+ endif
if lib.found()
ext_deps += lib
else
--
2.36.1
More information about the dev
mailing list