mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 18:21:49 +00:00
igbvf: force link checking when mailbox timeout has occurred
This change forces the link down when a mailbox timeout has occurred. Previously it was possible for a mailbox timeout to occur but for the interface to stay up. The problem with this was that it became possible for an interface to stay up and miss multiple requests resulting in a possible issue since the interface will be running in an unknown state. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
13800469d4
commit
0e512bfc2c
@ -362,8 +362,8 @@ static s32 e1000_check_for_link_vf(struct e1000_hw *hw)
|
|||||||
* or a virtual function reset
|
* or a virtual function reset
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* If we were hit with a reset drop the link */
|
/* If we were hit with a reset or timeout drop the link */
|
||||||
if (!mbx->ops.check_for_rst(hw))
|
if (!mbx->ops.check_for_rst(hw) || !mbx->timeout)
|
||||||
mac->get_link_status = true;
|
mac->get_link_status = true;
|
||||||
|
|
||||||
if (!mac->get_link_status)
|
if (!mac->get_link_status)
|
||||||
|
Loading…
Reference in New Issue
Block a user