Skip to content

Commit

Permalink
ixgbe: Ping the VFs on link status change to trigger link change
Browse files Browse the repository at this point in the history
When the link status changes on the PF we need to notify the VFs. In order
to do this we should ping all of the VFs in order to trigger a link status
change on them as well.

This fixes issues in which the PF would reset, but the VF didn't because the
NAK flag was not set in the VF mailbox.

Signed-off-by: Alexander Duyck <[email protected]>
Tested-by: Phil Schmitt <[email protected]>
Tested-by: Sibai Li <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
  • Loading branch information
Alexander Duyck authored and Jeff Kirsher committed Jul 18, 2012
1 parent 5abf7f7 commit befa2af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5390,6 +5390,9 @@ static void ixgbe_watchdog_link_is_up(struct ixgbe_adapter *adapter)

netif_carrier_on(netdev);
ixgbe_check_vf_rate_limit(adapter);

/* ping all the active vfs to let them know link has changed */
ixgbe_ping_all_vfs(adapter);
}

/**
Expand Down Expand Up @@ -5419,6 +5422,9 @@ static void ixgbe_watchdog_link_is_down(struct ixgbe_adapter *adapter)

e_info(drv, "NIC Link is Down\n");
netif_carrier_off(netdev);

/* ping all the active vfs to let them know link has changed */
ixgbe_ping_all_vfs(adapter);
}

/**
Expand Down

0 comments on commit befa2af

Please sign in to comment.