common/mlx5: introduce common library
authorMatan Azrad <matan@mellanox.com>
Wed, 29 Jan 2020 12:38:27 +0000 (12:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:20 +0000 (09:51 +0100)
commit7b4f1e6bd367855716d84e95a1dd85ac3647a4c8
tree63971c07b812ee33236d9acf90d575de13a84bb6
parent543e218fa58dcfb9b342142b9aeb3bd7f547ab86
common/mlx5: introduce common library

A new Mellanox vdpa PMD will be added to support vdpa operations by
Mellanox adapters.

This vdpa PMD design includes mlx5_glue and mlx5_devx operations and
large parts of them are shared with the net/mlx5 PMD.

Create a new common library in drivers/common for mlx5 PMDs.
Move mlx5_glue, mlx5_devx_cmds and their dependencies to the new mlx5
common library in drivers/common.

The files mlx5_devx_cmds.c, mlx5_devx_cmds.h, mlx5_glue.c,
mlx5_glue.h and mlx5_prm.h are moved as is from drivers/net/mlx5 to
drivers/common/mlx5.

Share the log mechanism macros.
Separate also the log mechanism to allow different log level control to
the common library.

Build files and version files are adjusted accordingly.
Include lines are adjusted accordingly.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
45 files changed:
MAINTAINERS
drivers/common/Makefile
drivers/common/meson.build
drivers/common/mlx5/Makefile [new file with mode: 0644]
drivers/common/mlx5/meson.build [new file with mode: 0644]
drivers/common/mlx5/mlx5_common.c [new file with mode: 0644]
drivers/common/mlx5/mlx5_common.h [new file with mode: 0644]
drivers/common/mlx5/mlx5_common_utils.h [new file with mode: 0644]
drivers/common/mlx5/mlx5_devx_cmds.c [new file with mode: 0644]
drivers/common/mlx5/mlx5_devx_cmds.h [new file with mode: 0644]
drivers/common/mlx5/mlx5_glue.c [new file with mode: 0644]
drivers/common/mlx5/mlx5_glue.h [new file with mode: 0644]
drivers/common/mlx5/mlx5_prm.h [new file with mode: 0644]
drivers/common/mlx5/rte_common_mlx5_version.map [new file with mode: 0644]
drivers/net/mlx5/Makefile
drivers/net/mlx5/meson.build
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_devx_cmds.c [deleted file]
drivers/net/mlx5/mlx5_devx_cmds.h [deleted file]
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_flow.c
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_flow_meter.c
drivers/net/mlx5/mlx5_flow_verbs.c
drivers/net/mlx5/mlx5_glue.c [deleted file]
drivers/net/mlx5/mlx5_glue.h [deleted file]
drivers/net/mlx5/mlx5_mac.c
drivers/net/mlx5/mlx5_mr.c
drivers/net/mlx5/mlx5_prm.h [deleted file]
drivers/net/mlx5/mlx5_rss.c
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h
drivers/net/mlx5/mlx5_rxtx_vec.c
drivers/net/mlx5/mlx5_rxtx_vec.h
drivers/net/mlx5/mlx5_rxtx_vec_altivec.h
drivers/net/mlx5/mlx5_rxtx_vec_neon.h
drivers/net/mlx5/mlx5_rxtx_vec_sse.h
drivers/net/mlx5/mlx5_stats.c
drivers/net/mlx5/mlx5_txq.c
drivers/net/mlx5/mlx5_utils.h
drivers/net/mlx5/mlx5_vlan.c
mk/rte.app.mk