mirror of https://gitee.com/openkylin/linux.git
cxgb4vf: display pause settings
Add support to display pause settings Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
72f6d71e49
commit
a64dcddc5c
|
@ -1419,6 +1419,22 @@ static int cxgb4vf_get_link_ksettings(struct net_device *dev,
|
|||
base->duplex = DUPLEX_UNKNOWN;
|
||||
}
|
||||
|
||||
if (pi->link_cfg.fc & PAUSE_RX) {
|
||||
if (pi->link_cfg.fc & PAUSE_TX) {
|
||||
ethtool_link_ksettings_add_link_mode(link_ksettings,
|
||||
advertising,
|
||||
Pause);
|
||||
} else {
|
||||
ethtool_link_ksettings_add_link_mode(link_ksettings,
|
||||
advertising,
|
||||
Asym_Pause);
|
||||
}
|
||||
} else if (pi->link_cfg.fc & PAUSE_TX) {
|
||||
ethtool_link_ksettings_add_link_mode(link_ksettings,
|
||||
advertising,
|
||||
Asym_Pause);
|
||||
}
|
||||
|
||||
base->autoneg = pi->link_cfg.autoneg;
|
||||
if (pi->link_cfg.pcaps & FW_PORT_CAP32_ANEG)
|
||||
ethtool_link_ksettings_add_link_mode(link_ksettings,
|
||||
|
|
Loading…
Reference in New Issue