net/mlx5: fix memory event callback list
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Tue, 6 Aug 2019 15:00:33 +0000 (15:00 +0000)
committerRaslan Darawsheh <rasland@mellanox.com>
Tue, 6 Aug 2019 15:42:12 +0000 (17:42 +0200)
commit0e3d0525b2f2158f5477de16540da298cf3ca147
treebfdf341c1fdc0228cebe4bf2c820cf462388ac53
parentc3318f529c28e8320ac43f86f214f93e2190445d
net/mlx5: fix memory event callback list

The shared Infiniband device context should be included
into memory event callback list only once on context creation,
and removed from the list only once on context destroying.
Multiple insertions of the same object caused the infinite
loop on the list processing.

Fixes: ccb3815346e6 ("net/mlx5: update memory event callback for shared context")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.c