aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r--drivers/net/benet/be_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index f3e97ab3321d..e291b1b87532 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -220,6 +220,7 @@ void be_link_status_update(struct be_adapter *adapter, bool link_up)
220 220
221 /* If link came up or went down */ 221 /* If link came up or went down */
222 if (adapter->link_up != link_up) { 222 if (adapter->link_up != link_up) {
223 adapter->link_speed = -1;
223 if (link_up) { 224 if (link_up) {
224 netif_start_queue(netdev); 225 netif_start_queue(netdev);
225 netif_carrier_on(netdev); 226 netif_carrier_on(netdev);
@@ -1674,6 +1675,8 @@ static int be_setup(struct be_adapter *adapter)
1674 if (status != 0) 1675 if (status != 0)
1675 goto rx_qs_destroy; 1676 goto rx_qs_destroy;
1676 1677
1678 adapter->link_speed = -1;
1679
1677 return 0; 1680 return 0;
1678 1681
1679rx_qs_destroy: 1682rx_qs_destroy: