net/mlx5: sync stop/start with secondary process
authorYongseok Koh <yskoh@mellanox.com>
Mon, 1 Apr 2019 21:12:56 +0000 (14:12 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commit2aac5b5d119f425964868a7e530e95d18af9e31c
treeb7bb2d4f7140f34c37d0522c43ad8b7aa2630dd4
parent7be600c8d8ef48cbd4b73077923821798190f2f1
net/mlx5: sync stop/start with secondary process

Rx/Tx burst function pointers are stored in the rte_eth_dev structure,
which is local to a process. Even though primary process replaces the
function pointers, secondary will not run the new ones. With rte_mp
APIs, primary can easily broadcast a request to stop/start the datapath
of secondary processes.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_mp.c
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_trigger.c