Skip to content

mlx ibverbs linking in meson

Thomas Monjalon dpdk-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 2 repliesIn review
  2. v46 patches 11 repliesSuperseded
  3. v35 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches10 repliesSuperseded
v13 patches1 replySuperseded

Changes in v5 from the cover letter

- fix build if pkg-config/pkgconf is missing (e.g. Windows)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drivers: cleanup meson build variabledrivers/common/mlx5/meson.build drivers/net/ipn3ke/meson.build drivers/net/mlx4/meson.build +1 more+230 -2341 reply
2/6net/mlx: add static ibverbs linkage with mesondoc/guides/nics/mlx4.rst doc/guides/nics/mlx5.rst drivers/common/mlx5/meson.build +2 more+16 -60 replies
3/6buildtools: get static mlx dependencies for mesonbuildtools/options-ibverbs-static.sh+9 -20 replies
4/6net/mlx: workaround static linkage with mesonbuildtools/meson.build drivers/common/mlx5/meson.build drivers/net/mlx4/meson.build+25 -30 replies
5/6net/mlx: rename meson variable for dlopen optiondrivers/common/mlx5/meson.build drivers/net/mlx4/meson.build+8 -80 replies
6/6net/mlx: fix overlinking with meson and glue dlopendrivers/common/mlx5/meson.build drivers/net/mlx4/meson.build+8 -40 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchBruce RichardsonRosen Xu
1/6A-b
2/6A-b
3/6A-b
4/6
5/6A-b
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [dpdk-dev] [PATCH v5 0/6] mlx ibverbs linking in meson

This is the follow-up of the feature I added one year ago:
static linkage of libibverbs in mlx PMDs.
The first implementation was focused on "make". This second round does the same with "meson".

With the meson option ibverbs_link, only the mode "shared" was working correctly.
This patchset adds the mode "static" and fixes the mode "dlopen".

changes in v5:
- fix build if pkg-config/pkgconf is missing (e.g. Windows)

changes in v4:
- fix lib ordering
- simplify conditions by using subdir_done()

changes in v3:
- get cflags with pkg-config invocation
- drop addition of global variable hidden_deps
- remove overlinking in dlopen mode

changes in v2:
- split mlx patch for normal addition and workarounds
- fix ldflags for ibverbs installed in a standard directory
- fix libs order leading to undefined references
- add doc for hidden_deps
- improve explanations in commit logs

Thomas Monjalon (6):
drivers: cleanup meson build variable net/mlx: add static ibverbs linkage with meson
buildtools: get static mlx dependencies for meson net/mlx: workaround static linkage with meson net/mlx: rename meson variable for dlopen option net/mlx: fix overlinking with meson and glue dlopen

 buildtools/meson.build               |   2 +
 buildtools/options-ibverbs-static.sh |  11 +-
 doc/guides/nics/mlx4.rst             |   4 +
 doc/guides/nics/mlx5.rst             |   4 +
 drivers/common/mlx5/meson.build      | 314 ++++++++++++++-------------
 drivers/net/ipn3ke/meson.build       |  17 +-
 drivers/net/mlx4/meson.build         | 154 +++++++------
 drivers/raw/ifpga/meson.build        |  23 +-
 meson_options.txt                    |   4 +-
 9 files changed, 286 insertions(+), 247 deletions(-)
Signature · 1 line
2.25.0