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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 21b0657de9e8..4520db716b43 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -1586,6 +1586,8 @@ static int be_open(struct net_device *netdev)
1586 struct be_eq_obj *tx_eq = &adapter->tx_eq; 1586 struct be_eq_obj *tx_eq = &adapter->tx_eq;
1587 bool link_up; 1587 bool link_up;
1588 int status; 1588 int status;
1589 u8 mac_speed;
1590 u16 link_speed;
1589 1591
1590 /* First time posting */ 1592 /* First time posting */
1591 be_post_rx_frags(adapter); 1593 be_post_rx_frags(adapter);
@@ -1604,7 +1606,8 @@ static int be_open(struct net_device *netdev)
1604 /* Rx compl queue may be in unarmed state; rearm it */ 1606 /* Rx compl queue may be in unarmed state; rearm it */
1605 be_cq_notify(adapter, adapter->rx_obj.cq.id, true, 0); 1607 be_cq_notify(adapter, adapter->rx_obj.cq.id, true, 0);
1606 1608
1607 status = be_cmd_link_status_query(adapter, &link_up); 1609 status = be_cmd_link_status_query(adapter, &link_up, &mac_speed,
1610 &link_speed);
1608 if (status) 1611 if (status)
1609 return status; 1612 return status;
1610 be_link_status_update(adapter, link_up); 1613 be_link_status_update(adapter, link_up);