numam-dpdk/drivers/net/mlx4
Thomas Monjalon a5e5af7f20 net/mlx4: fix build with -fno-common
The variable storages of the same name are merged together
if compiled with -fcommon. This is the default.
This default behaviour allows to declare a variable in a header file and
share the variable in every .o binaries thanks to merge at link-time.

In the case of dlopen linking of the glue library, the pointer mlx4_glue
is referencing the glue functions struct and is set after calling
dlopen.

If compiling with -fno-common (default in GCC 10), the variables must be
declared as extern to avoid multiple re-definitions.
In case the glue layer is split in glue library, the variable mlx4_glue
needs to have its own storage for the rest of the PMD.

Cc: stable@dpdk.org

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Matan Azrad <matan@mellanox.com>
2020-04-21 13:57:07 +02:00
..
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
mlx4_ethdev.c net/mlx: replace hardcoded value with macro 2020-02-14 12:42:12 +01:00
mlx4_flow.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_flow.h ethdev: deprecate legacy filter API 2019-04-19 14:51:54 +02:00
mlx4_glue.c align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
mlx4_glue.h net/mlx4: fix build with -fno-common 2020-04-21 13:57:07 +02:00
mlx4_intr.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_mp.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_mr.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx4_prm.h net/mlx4: remove device register remap 2019-04-12 11:02:02 +02:00
mlx4_rxq.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_rxtx.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_rxtx.h net/mlx4: fix build with -fno-common 2020-04-21 13:57:07 +02:00
mlx4_txq.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_utils.c net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4_utils.h net/mlx4: improve assert control 2020-02-05 09:51:21 +01:00
mlx4.c net/mlx4: fix build with -fno-common 2020-04-21 13:57:07 +02:00
mlx4.h ethdev: change allmulticast callbacks to return status 2019-10-07 15:00:55 +02:00
rte_pmd_mlx4_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00