linux/drivers/net/ethernet/qlogic/qede
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
..
Makefile qede: Add driver support for PTP 2017-02-15 12:42:53 -05:00
qede_dcbnl.c qede: Add dcbnl support. 2016-06-08 11:11:00 -07:00
qede_ethtool.c qede: Prevent index problems in loopback test 2017-02-20 17:11:54 -05:00
qede_filter.c qed*: Add support for ndo_set_vf_trust 2017-01-01 21:02:14 -05:00
qede_fp.c qede: Add driver support for PTP 2017-02-15 12:42:53 -05:00
qede_main.c qed*: Fix link indication race 2017-02-20 17:11:54 -05:00
qede_ptp.c qede: Add driver support for PTP 2017-02-15 12:42:53 -05:00
qede_ptp.h qede: Add driver support for PTP 2017-02-15 12:42:53 -05:00
qede_roce.c qed*: Update to dual-license 2017-01-01 21:02:14 -05:00
qede.h qede: Add driver support for PTP 2017-02-15 12:42:53 -05:00