numam-dpdk/drivers/common
Thomas Monjalon 2889d38256 common/mlx5: 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 mlx5_glue
is referencing the glue functions struct and is set after calling
dlopen.

If compiling with -fno-common (default in GCC 10), the variable must be
declared as extern to avoid multiple re-definitions.
In case the glue layer is split in glue library, the variable mlx5_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
..
cpt replace hot attributes 2020-04-16 18:30:58 +02:00
dpaax replace hot attributes 2020-04-16 18:30:58 +02:00
iavf common/iavf: update version 2020-04-21 13:57:07 +02:00
mlx5 common/mlx5: fix build with -fno-common 2020-04-21 13:57:07 +02:00
mvep build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
octeontx net/octeontx: add application domain validation 2019-11-26 07:49:30 +01:00
octeontx2 net/octeontx2: support custom L2 header 2020-04-21 13:57:06 +02:00
qat compress/qat: support IM buffer too small operation 2020-04-19 17:15:14 +02:00
Makefile net/ice: add DCF hardware initialization 2020-04-21 13:57:05 +02:00
meson.build common/mlx5: introduce common library 2020-02-05 09:51:20 +01:00