net/mlx5: fix device stop with multiple regions
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Wed, 25 Oct 2017 14:04:36 +0000 (16:04 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commit5f64e6bfa1937828c9813af777a85ea57cc2e4fe
tree0bb8b1e7df38e741dee93c54ebf4c2bc5e9496f7
parent3ba62841c2ff2739b6cc34d29b6c6583ac872c93
net/mlx5: fix device stop with multiple regions

LIST macro are not safe when inside a LIST_FOREACH() a LIST_REMOVE() is
called to remove an entry, this behavior is undefined causing some entries
to disappear from the list.

Fixes: 6e78005a9b30 ("net/mlx5: add reference counter on DPDK Tx queues")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_trigger.c