net/mlx4_core: Fix wrong index in propagating port change event to VFs
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 22 Jul 2015 13:53:47 +0000 (16:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Jul 2015 23:29:25 +0000 (16:29 -0700)
commit1c1bf34951e8d17941bf708d1901c47e81b15d55
treefaad04587b4907d30ec36aacdfa2f2dc2c8f4ecf
parent178d23e3cd4811ebe702d60ac31e8bee389a5847
net/mlx4_core: Fix wrong index in propagating port change event to VFs

The port-change event processing in procedure mlx4_eq_int() uses "slave"
as the vf_oper array index. Since the value of "slave" is the PF function
index, the result is that the PF link state is used for deciding to
propagate the event for all the VFs. The VF link state should be used,
so the VF function index should be used here.

Fixes: 948e306d7d64 ('net/mlx4: Add VF link state support')
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/eq.c