summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2010-11-18 06:12:30 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2010-12-25 08:37:54 +0300
commit0e512bfc2c0cd6072387092f8d1ac8e1a758965b (patch)
treef0e89b00e350cb4e2a46e445266271bdd8cd8af2 /drivers/net
parent13800469d40bf4dc9fbed17f4692b2ebe94d4526 (diff)
downloadlinux-0e512bfc2c0cd6072387092f8d1ac8e1a758965b.tar.xz
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/igbvf/vf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igbvf/vf.c b/drivers/net/igbvf/vf.c
index 0cc13c6ed418..74486a8b009a 100644
--- a/drivers/net/igbvf/vf.c
+++ b/drivers/net/igbvf/vf.c
@@ -362,8 +362,8 @@ static s32 e1000_check_for_link_vf(struct e1000_hw *hw)
* or a virtual function reset
*/
- /* If we were hit with a reset drop the link */
- if (!mbx->ops.check_for_rst(hw))
+ /* If we were hit with a reset or timeout drop the link */
+ if (!mbx->ops.check_for_rst(hw) || !mbx->timeout)
mac->get_link_status = true;
if (!mac->get_link_status)