Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexander Duyck and committed by
Jeff Kirsher
0e512bfc 13800469

+2 -2
+2 -2
drivers/net/igbvf/vf.c
··· 362 362 * or a virtual function reset 363 363 */ 364 364 365 - /* If we were hit with a reset drop the link */ 366 - if (!mbx->ops.check_for_rst(hw)) 365 + /* If we were hit with a reset or timeout drop the link */ 366 + if (!mbx->ops.check_for_rst(hw) || !mbx->timeout) 367 367 mac->get_link_status = true; 368 368 369 369 if (!mac->get_link_status)