net/mlx5: refactor multi-process communication
authorOphir Munk <ophirmu@mellanox.com>
Sun, 19 Jul 2020 10:18:15 +0000 (10:18 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 13:46:30 +0000 (15:46 +0200)
commit2e86c4e5c753446f001633bd752cbbb2c4d2c711
treea625a284c86ab99bc49281c3c5af2a7bf532b529
parentef9ee13f6e4c0965d2f22ed944f9e8f93fb798ca
net/mlx5: refactor multi-process communication

1. The shared data communication between the primary and the secondary
processes is implemented using Linux API. Move the Linux API code under
linux directory (file linux/mlx5_os.c).

2. File net/mlx5/mlx5_mp.c handles requests to the primary and secondary
processes (e.g. start_rxtx, stop_rxtx). It is Linux based so it is moved
under linux (new file linux/mlx5_mp_os.c).

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/Makefile
drivers/net/mlx5/linux/meson.build
drivers/net/mlx5/linux/mlx5_mp_os.c [new file with mode: 0644]
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/meson.build
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_mp.c [deleted file]
drivers/net/mlx5/mlx5_trigger.c