net/mlx5: replace IPC socket with EAL API
authorYongseok Koh <yskoh@mellanox.com>
Mon, 1 Apr 2019 21:12:54 +0000 (14:12 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commit9a8ab29b84d3479512855fdd849679921ef4567a
tree6104a71684e67f38c4628b8f11ee74f503028b9e
parent3ebe65805992aff61f87a9808c4a56053e9f0351
net/mlx5: replace IPC socket with EAL API

Socket API is used for IPC in order for secondary process to acquire
Verb command file descriptor. The FD is used to remap UAR address.
The multi-process APIs (rte_mp) in EAL are newly introduced.
mlx5_socket.c is replaced with mlx5_mp.c, which uses the new APIs.

As it is PMD global infrastructure, only one IPC channel is established.
All the IPC message types may have port_id in the message if there is
need to reference a specific device.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/Makefile
drivers/net/mlx5/meson.build
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_mp.c [new file with mode: 0644]
drivers/net/mlx5/mlx5_socket.c [deleted file]