common/mlx5: split glue initialization
authorThomas Monjalon <thomas@monjalon.net>
Wed, 8 Apr 2020 00:08:58 +0000 (02:08 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:07 +0000 (13:57 +0200)
commit83c99c366e49aa9204665a52419016150eba9ea6
treece1b78e72c7a2b42757350f06ab6f135c5825e0b
parent51efc0e30d3dfe2b044d9b9c4babc7ee0517f883
common/mlx5: split glue initialization

The function mlx5_glue_init was doing three things:
- initialize logs
- load glue library if in dlopen mode
- initialize glue layer
They are split in three functions for clarity.

The config option RTE_IBVERBS_LINK_DLOPEN is not used anymore
outside of make and meson files. It is replaced with MLX5_GLUE,
which is defined in the same condition and is already used with dlopen.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/common/mlx5/mlx5_common.c