net/mlx4: fix assertion failure on link update
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 16 Jun 2017 11:37:51 +0000 (13:37 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:56 +0000 (15:00 +0200)
commit2d449f7c52de93a5978b03ea541e454fe87f801b
treee2d148c90e547f1b264697d6fe5b7db9fcc6a0b7
parentd68e62c67b5fc96aecaf969de2edc9946461975d
net/mlx4: fix assertion failure on link update

The interrupt handler can sometimes be triggered for reasons other than a
link status event. An assertion failure happen when such events occur while
an asynchronous link status update is already scheduled.

Address this issue using the same approach as its mlx5 counterpart,
commit a9f2fbc42f0c ("net/mlx5: fix inconsistent link status")

Fixes: c4da6caa426d ("mlx4: handle link status interrupts")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx4/mlx4.c