net/mlx5: Loop over temp list to release delay events
authorHuy Nguyen <huyn@mellanox.com>
Mon, 30 Oct 2017 03:40:56 +0000 (22:40 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Nov 2017 06:39:20 +0000 (15:39 +0900)
commitb8cce68bf1f1b773ac1a535707f968512b3c1e5f
tree3cae0980b4aec28ae12861b3ab83921e31c8bc7c
parent1cb483a5cc84b497afb51a6c5dfb5a38a0b67086
net/mlx5: Loop over temp list to release delay events

list_splice_init initializing waiting_events_list after splicing it to
temp list, therefore we should loop over temp list to fire the events.

Fixes: 4ca637a20a52 ("net/mlx5: Delay events till mlx5 interface's add complete for pci resume")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c