be2net: Changes to update ethtool get_settings function to return appropriate values.
Update ethtool get_settings function to: - get current link speed settings from controller - get port transceiver type from controller - fill appropriate values for supported, phy_address Signed-off-by: Sarveshwar Bandi <sarveshwarb@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7e15b0c999
commit
0388f251a3
4 changed files with 117 additions and 6 deletions
|
@ -1586,6 +1586,8 @@ static int be_open(struct net_device *netdev)
|
|||
struct be_eq_obj *tx_eq = &adapter->tx_eq;
|
||||
bool link_up;
|
||||
int status;
|
||||
u8 mac_speed;
|
||||
u16 link_speed;
|
||||
|
||||
/* First time posting */
|
||||
be_post_rx_frags(adapter);
|
||||
|
@ -1604,7 +1606,8 @@ static int be_open(struct net_device *netdev)
|
|||
/* Rx compl queue may be in unarmed state; rearm it */
|
||||
be_cq_notify(adapter, adapter->rx_obj.cq.id, true, 0);
|
||||
|
||||
status = be_cmd_link_status_query(adapter, &link_up);
|
||||
status = be_cmd_link_status_query(adapter, &link_up, &mac_speed,
|
||||
&link_speed);
|
||||
if (status)
|
||||
return status;
|
||||
be_link_status_update(adapter, link_up);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue