linux/drivers/net/ethernet/qlogic
Mintz, Yuval 65ed2ffd64 qed*: Fix link indication race
Driver changes the link properties via communication with
the management firmware, and re-reads the resulting link status
when it receives an indication that the link has changed.
However, there are certain scenarios where such indications
might be missing, and so driver also re-reads the current link
results without attention in several places. Specifically, it
does so during load and when resetting the link.

This creates a race where driver might reflect incorrect
link status - e.g., when explicit reading of the link status is
switched by attention with the changed configuration.

Correct this flow by a lock syncronizing the handling of the
link indications [both explicit requests and attention].

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-20 17:11:54 -05:00
..
netxen net: qlogic: netxen: use new api ethtool_{get|set}_link_ksettings 2017-02-17 14:06:41 -05:00
qed qed*: Fix link indication race 2017-02-20 17:11:54 -05:00
qede qed*: Fix link indication race 2017-02-20 17:11:54 -05:00
qlcnic net: qlogic: qlcnic: use new api ethtool_{get|set}_link_ksettings 2017-02-20 11:22:19 -05:00
qlge net: qlogic: qlge: use new api ethtool_{get|set}_link_ksettings 2017-02-20 11:22:19 -05:00
Kconfig qed: Add support for hardware offloaded FCoE. 2017-02-19 18:10:42 -05:00
Makefile qede: Add basic Network driver 2015-10-27 19:34:47 -07:00
qla3xxx.c net: qlogic: qla3xxx: use new api ethtool_{get|set}_link_ksettings 2017-02-20 10:27:17 -05:00
qla3xxx.h