Commit 6fe59675 authored by Greg Rose's avatar Greg Rose Committed by Jeff Kirsher

ixgbevf: Fix link up messages

Use dev_info to log link up/down messages.
Signed-off-by: default avatarGreg Rose <gregory.v.rose@intel.com>
Tested-by: default avatarSibai Li <sibai.li@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 1e72bfc3
...@@ -2240,9 +2240,10 @@ static void ixgbevf_watchdog_task(struct work_struct *work) ...@@ -2240,9 +2240,10 @@ static void ixgbevf_watchdog_task(struct work_struct *work)
if (link_up) { if (link_up) {
if (!netif_carrier_ok(netdev)) { if (!netif_carrier_ok(netdev)) {
hw_dbg(&adapter->hw, "NIC Link is Up, %u Gbps\n", dev_info(&adapter->pdev->dev,
(link_speed == IXGBE_LINK_SPEED_10GB_FULL) ? "NIC Link is Up, %u Gbps\n",
10 : 1); (link_speed == IXGBE_LINK_SPEED_10GB_FULL) ?
10 : 1);
netif_carrier_on(netdev); netif_carrier_on(netdev);
netif_tx_wake_all_queues(netdev); netif_tx_wake_all_queues(netdev);
} }
...@@ -2250,7 +2251,7 @@ static void ixgbevf_watchdog_task(struct work_struct *work) ...@@ -2250,7 +2251,7 @@ static void ixgbevf_watchdog_task(struct work_struct *work)
adapter->link_up = false; adapter->link_up = false;
adapter->link_speed = 0; adapter->link_speed = 0;
if (netif_carrier_ok(netdev)) { if (netif_carrier_ok(netdev)) {
hw_dbg(&adapter->hw, "NIC Link is Down\n"); dev_info(&adapter->pdev->dev, "NIC Link is Down\n");
netif_carrier_off(netdev); netif_carrier_off(netdev);
netif_tx_stop_all_queues(netdev); netif_tx_stop_all_queues(netdev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment