aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2012-05-05 01:30:38 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2012-07-17 21:47:00 -0400
commitbefa2af778b5cf5737eea3e3ff370c4f46d3f131 (patch)
treeb2cf4282084536310ae40a79023923f1e93edabe
parent5abf7f7e0f6bdbfcac737f636497d7016d9507eb (diff)
ixgbe: Ping the VFs on link status change to trigger link change
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 <alexander.h.duyck@intel.com> Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index ee230f533ee3..17f46f0079a5 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -5390,6 +5390,9 @@ static void ixgbe_watchdog_link_is_up(struct ixgbe_adapter *adapter)
5390 5390
5391 netif_carrier_on(netdev); 5391 netif_carrier_on(netdev);
5392 ixgbe_check_vf_rate_limit(adapter); 5392 ixgbe_check_vf_rate_limit(adapter);
5393
5394 /* ping all the active vfs to let them know link has changed */
5395 ixgbe_ping_all_vfs(adapter);
5393} 5396}
5394 5397
5395/** 5398/**
@@ -5419,6 +5422,9 @@ static void ixgbe_watchdog_link_is_down(struct ixgbe_adapter *adapter)
5419 5422
5420 e_info(drv, "NIC Link is Down\n"); 5423 e_info(drv, "NIC Link is Down\n");
5421 netif_carrier_off(netdev); 5424 netif_carrier_off(netdev);
5425
5426 /* ping all the active vfs to let them know link has changed */
5427 ixgbe_ping_all_vfs(adapter);
5422} 5428}
5423 5429
5424/** 5430/**