Skip to contentSkip to conversation

net/mana: fix dependencies

PATCH In review Thomas Monjalon 4 participants 9 messages Oct 9, 2022 – Oct 10, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 doc/guides/nics/mana.rst     | 6 ++++--
 drivers/net/mana/meson.build | 9 ++++++---
 2 files changed, 10 insertions(+), 5 deletions(-)
doc/guides/nics/mana.rst +4 -2
index 30e3fd1cb6..005c0b2ca7 100644
@@ -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
 ------------------------------
 
drivers/net/mana/meson.build +6 -3
index bdf526e846..493f0d26d4 100644
@@ -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
Signature · 1 line
2.36.1
#1 lore raw

Long,

For the reasons below, we should not have merged the MANA PMD in DPDK 22.11. We must not assume dependencies until they are upstream.
This is a red flag on the PMD, a revert is possible.

Jason,

Please could you tell us what is the expected date of release of the MANA support in Linux and rdma-core?

09/10/2022 15:53, Thomas Monjalon:
[...]

Quoted 5 lines

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.

[...]

Quoted 11 lines
doc/guides/nics/mana.rst +3 -1
-  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.
#2 lore raw

I'm hopeful for 6.2, but it needs a respin I haven't seen yet.

Get Outlook for Android<https://aka.ms/AAb9ysg>
________________________________
From: Thomas Monjalon <[email protected]>
Sent: Sunday, October 9, 2022 11:03:56 AM
To: NBU-Contact-longli (EXTERNAL) <[email protected]>; Jason Gunthorpe <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [PATCH] net/mana: fix dependencies

Long,

For the reasons below, we should not have merged the MANA PMD in DPDK 22.11. We must not assume dependencies until they are upstream.
This is a red flag on the PMD, a revert is possible.

Jason,

Please could you tell us what is the expected date of release of the MANA support in Linux and rdma-core?

09/10/2022 15:53, Thomas Monjalon:
[...]

Quoted 5 lines

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.

[...]

Quoted 11 lines
doc/guides/nics/mana.rst +3 -1
-  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.
#3 lore raw

I will send respin as soon as patch submission window reopens.

Thanks,
Long

From: Jason Gunthorpe <[email protected]>
Sent: Sunday, October 9, 2022 7:08 AM
To: thomas <[email protected]>; Long Li <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] net/mana: fix dependencies

I'm hopeful for 6.2, but it needs a respin I haven't seen yet.

Get Outlook for Android<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FAAb9ysg&data=05%7C01%7Clongli%40microsoft.com%7C94edd67fca644efd172908daa9ffb037%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638009212903090034%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=qxczZz8McOnU2LUcOh3jx4HouSVYzylCNGAheGmVPDg%3D&reserved=0>
________________________________
From: Thomas Monjalon <[email protected]<mailto:[email protected]>>
Sent: Sunday, October 9, 2022 11:03:56 AM
To: NBU-Contact-longli (EXTERNAL) <[email protected]<mailto:[email protected]>>; Jason Gunthorpe <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH] net/mana: fix dependencies

Long,

For the reasons below, we should not have merged the MANA PMD in DPDK 22.11. We must not assume dependencies until they are upstream.
This is a red flag on the PMD, a revert is possible.

Jason,

Please could you tell us what is the expected date of release of the MANA support in Linux and rdma-core?

09/10/2022 15:53, Thomas Monjalon:
[...]

Quoted 5 lines

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.

[...]

Quoted 11 lines
doc/guides/nics/mana.rst +3 -1
-  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.
#4 lore raw

10/10/2022 20:53, Long Li:

Quoted 1 line

I will send respin as soon as patch submission window reopens.

So what do we do in DPDK?
Do you agree with the patch I sent to correct wrong assumptions in the doc?

My fear is that if we keep mana PMD as-is,
it could break compilation when libmana will be released if there is an incompatibility with what you have in staging.

Please remember that rdma-core is also used for mlx PMDs, and we don't want mana to break compilation when updating rdma-core.

Quoted 42 lines

From: Jason Gunthorpe <[email protected]>
Sent: Sunday, October 9, 2022 7:08 AM
To: thomas <[email protected]>; Long Li <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] net/mana: fix dependencies

I'm hopeful for 6.2, but it needs a respin I haven't seen yet.

From: Thomas Monjalon <[email protected]<mailto:[email protected]>>

Long,

For the reasons below, we should not have merged the MANA PMD in DPDK 22.11. We must not assume dependencies until they are upstream.
This is a red flag on the PMD, a revert is possible.

Jason,

Please could you tell us what is the expected date of release of the MANA support in Linux and rdma-core?

09/10/2022 15:53, Thomas Monjalon:
[...]

Quoted 5 lines

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.

[...]

Quoted 11 lines
doc/guides/nics/mana.rst +3 -1
-  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.
#5 lore raw
Quoted 7 lines

Subject: Re: [PATCH] net/mana: fix dependencies

10/10/2022 20:53, Long Li:

Quoted 1 line

I will send respin as soon as patch submission window reopens.

So what do we do in DPDK?
Do you agree with the patch I sent to correct wrong assumptions in the doc?

Yes, the patch looks good to me.

Quoted 4 lines

My fear is that if we keep mana PMD as-is, it could break compilation when libmana will be released if there is an incompatibility with what you have in staging.

I hope that will not happen. After MANA PMD is merged, any changes in libmana while in staging will not break the PMD. (At minimum, it will guarantee not to break compilation)

Quoted 53 lines

Please remember that rdma-core is also used for mlx PMDs, and we don't want mana to break compilation when updating rdma-core.

Quoted 4 lines

From: Jason Gunthorpe <[email protected]>
Sent: Sunday, October 9, 2022 7:08 AM
To: thomas <[email protected]>; Long Li <[email protected]>
Cc: [email protected]; [email protected];

[email protected];

Quoted 11 lines

[email protected]
Subject: Re: [PATCH] net/mana: fix dependencies

I'm hopeful for 6.2, but it needs a respin I haven't seen yet.

From: Thomas Monjalon
<[email protected]<mailto:[email protected]>>

Long,

For the reasons below, we should not have merged the MANA PMD in

DPDK 22.11.

Quoted 29 lines

We must not assume dependencies until they are upstream. This is a red flag on the PMD, a revert is possible.

Jason,

Please could you tell us what is the expected date of release of the MANA support in Linux and rdma-core?

09/10/2022 15:53, Thomas Monjalon:
[...]

Quoted 5 lines

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.

[...]

Quoted 11 lines
doc/guides/nics/mana.rst +3 -1
-  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.
#6 lore raw
In reply to Thomas Monjalon
Quoted 6 lines · Thomas Monjalon

Long,

For the reasons below, we should not have merged the MANA PMD in DPDK 22.11. We must not assume dependencies until they are upstream.
This is a red flag on the PMD, a revert is possible.

I missed that dependencies are not ready :(

What do you think to update the MAINTAINERS file like following until all dependencies met:

-Microsoft mana
+Microsoft mana - EXPERIMENTAL

perhaps add similar not to 'doc/guides/nics/mana.rst' to highlight the same?

They can be updated back in the future when dependencies met.

Quoted 29 lines

Jason,

Please could you tell us what is the expected date of release of the MANA support in Linux and rdma-core?

09/10/2022 15:53, Thomas Monjalon:
[...]

Quoted 5 lines

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.

[...]

Quoted 11 lines
doc/guides/nics/mana.rst +3 -1
-  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.
#7 lore raw
In reply to Thomas Monjalon

09/10/2022 15:53, Thomas Monjalon:

Quoted 8 lines

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.

Forgot this line:

Fixes 517ed6e2d590 ("net/mana: add basic driver with build environment")
Quoted 2 lines
author Applied
#8 lore raw

09/10/2022 16:18, Thomas Monjalon:

Quoted 4 lines

09/10/2022 15:53, Thomas Monjalon:

Quoted 3 lines

The reason for not building is updated
to be consistent with other drivers.

Quoted 10 lines
Quoted 5 lines

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.

Forgot this line:

Fixes 517ed6e2d590 ("net/mana: add basic driver with build environment")
Quoted 1 line

Applied