common/mlx5: share Netlink commands
authorMatan Azrad <matan@mellanox.com>
Wed, 29 Jan 2020 12:38:49 +0000 (12:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:20 +0000 (09:51 +0100)
commit654810b56828eb5138a86db395e5cafcef3d70dd
tree3a30c3cb98df9af65fbc124ebf2b2f6f7cc2d26a
parentf22442cb5d42d6e40557819e46b7b2543b44fbf3
common/mlx5: share Netlink commands

Move Netlink mechanism and its dependencies from net/mlx5 to
common/mlx5 in order to be ready to use by other mlx5 drivers.

The dependencies are BITFIELD defines, the ppc64 compilation workaround
for bool type and the function mlx5_translate_port_name.

Update build mechanism accordingly.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
15 files changed:
drivers/common/mlx5/Makefile
drivers/common/mlx5/meson.build
drivers/common/mlx5/mlx5_common.c
drivers/common/mlx5/mlx5_common.h
drivers/common/mlx5/mlx5_nl.c [new file with mode: 0644]
drivers/common/mlx5/mlx5_nl.h [new file with mode: 0644]
drivers/common/mlx5/rte_common_mlx5_version.map
drivers/net/mlx5/Makefile
drivers/net/mlx5/meson.build
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_defs.h
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_nl.c [deleted file]
drivers/net/mlx5/mlx5_nl.h [deleted file]
drivers/net/mlx5/mlx5_vlan.c