net/mana: fix dependencies

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.

Fixes: 517ed6e2d5 ("net/mana: add basic driver with build environment")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
This commit is contained in:
Thomas Monjalon 2022-10-09 15:53:37 +02:00
parent 98402eb989
commit df1982df8b
2 changed files with 10 additions and 5 deletions

View File

@ -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
------------------------------

View File

@ -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