net/mlx5: fix memory event on secondary process
authorYongseok Koh <yskoh@mellanox.com>
Mon, 1 Apr 2019 21:12:53 +0000 (14:12 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commit3ebe65805992aff61f87a9808c4a56053e9f0351
tree0bec69216a0de038a5c2d9f991d6db095aa5ee45
parent91e2710342abda64a8f92e8325ad58fa3216dabf
net/mlx5: fix memory event on secondary process

As the memory event is propagated to secondary processes, the event is
processed redundantly. This should be processed once because the data
structure used for MR and the event is global across the processes.

Fixes: 974f1e7ef146 ("net/mlx5: add new memory region support")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_mr.c