Commit 6d779b41 authored by Anjali Singhai's avatar Anjali Singhai Committed by Jeff Kirsher

i40e: Link code updates

Link events should not print to the log until the device is
administratively up.
Signed-off-by: default avatarAnjali Singhai <anjali.singhai@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent b68656b2
...@@ -3703,8 +3703,11 @@ static int i40e_up_complete(struct i40e_vsi *vsi) ...@@ -3703,8 +3703,11 @@ static int i40e_up_complete(struct i40e_vsi *vsi)
if ((pf->hw.phy.link_info.link_info & I40E_AQ_LINK_UP) && if ((pf->hw.phy.link_info.link_info & I40E_AQ_LINK_UP) &&
(vsi->netdev)) { (vsi->netdev)) {
netdev_info(vsi->netdev, "NIC Link is Up\n");
netif_tx_start_all_queues(vsi->netdev); netif_tx_start_all_queues(vsi->netdev);
netif_carrier_on(vsi->netdev); netif_carrier_on(vsi->netdev);
} else if (vsi->netdev) {
netdev_info(vsi->netdev, "NIC Link is Down\n");
} }
i40e_service_event_schedule(pf); i40e_service_event_schedule(pf);
...@@ -4153,8 +4156,9 @@ static void i40e_link_event(struct i40e_pf *pf) ...@@ -4153,8 +4156,9 @@ static void i40e_link_event(struct i40e_pf *pf)
if (new_link == old_link) if (new_link == old_link)
return; return;
netdev_info(pf->vsi[pf->lan_vsi]->netdev, if (!test_bit(__I40E_DOWN, &pf->vsi[pf->lan_vsi]->state))
"NIC Link is %s\n", (new_link ? "Up" : "Down")); netdev_info(pf->vsi[pf->lan_vsi]->netdev,
"NIC Link is %s\n", (new_link ? "Up" : "Down"));
/* Notify the base of the switch tree connected to /* Notify the base of the switch tree connected to
* the link. Floating VEBs are not notified. * the link. Floating VEBs are not notified.
......
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