mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
bnxt_en: Fix ethtool -a reporting.
To report flow control tx/rx settings accurately regardless of autoneg setting, we should use link_info->req_flow_ctrl. Before this patch, the reported settings were only correct when autoneg was on. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
49b5c7a125
commit
3c02d1bb32
@ -855,10 +855,8 @@ static void bnxt_get_pauseparam(struct net_device *dev,
|
|||||||
if (BNXT_VF(bp))
|
if (BNXT_VF(bp))
|
||||||
return;
|
return;
|
||||||
epause->autoneg = !!(link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL);
|
epause->autoneg = !!(link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL);
|
||||||
epause->rx_pause =
|
epause->rx_pause = !!(link_info->req_flow_ctrl & BNXT_LINK_PAUSE_RX);
|
||||||
((link_info->auto_pause_setting & BNXT_LINK_PAUSE_RX) != 0);
|
epause->tx_pause = !!(link_info->req_flow_ctrl & BNXT_LINK_PAUSE_TX);
|
||||||
epause->tx_pause =
|
|
||||||
((link_info->auto_pause_setting & BNXT_LINK_PAUSE_TX) != 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int bnxt_set_pauseparam(struct net_device *dev,
|
static int bnxt_set_pauseparam(struct net_device *dev,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user