net/mlx4_core: Raise slave shutdown event upon FLR
commita0667a83aff20c7659960d7e7cd6a5d187c7df20
authorYishai Hadas <yishaih@mellanox.com>
Wed, 18 Mar 2015 12:56:04 +0000 (18 14:56 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 15 Apr 2015 19:51:50 +0000 (15 15:51 -0400)
treebcf71716668045a38c679935ddcf56ce43d8fa89
parentee59fa0d7e9af130bfc1b75524e04c101670bd5e
net/mlx4_core: Raise slave shutdown event upon FLR

There might be cases that PF doesn't get a "reset" command upon slave down
(e.g. virsh destroy). In these cases, however, an FLR event is issued.

Therefore, when the PF receives an FLR event for a slave, it should also
generate a shutdown event on the PF for that slave, to let the PF upper
layers (mlx4_ib, eth) perform any required cleanup/actions associated
with slave shutdown.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/mellanox/mlx4/eq.c