mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 13:11:14 +00:00
enetc: Add missing link state info for ethtool
Just hook get_link to standard ethtool_op_get_link, nothing special needed at this point. Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5d91eebc5d
commit
22fb43f360
1 changed files with 2 additions and 0 deletions
|
@ -570,6 +570,7 @@ static const struct ethtool_ops enetc_pf_ethtool_ops = {
|
||||||
.get_ringparam = enetc_get_ringparam,
|
.get_ringparam = enetc_get_ringparam,
|
||||||
.get_link_ksettings = phy_ethtool_get_link_ksettings,
|
.get_link_ksettings = phy_ethtool_get_link_ksettings,
|
||||||
.set_link_ksettings = phy_ethtool_set_link_ksettings,
|
.set_link_ksettings = phy_ethtool_set_link_ksettings,
|
||||||
|
.get_link = ethtool_op_get_link,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct ethtool_ops enetc_vf_ethtool_ops = {
|
static const struct ethtool_ops enetc_vf_ethtool_ops = {
|
||||||
|
@ -584,6 +585,7 @@ static const struct ethtool_ops enetc_vf_ethtool_ops = {
|
||||||
.get_rxfh = enetc_get_rxfh,
|
.get_rxfh = enetc_get_rxfh,
|
||||||
.set_rxfh = enetc_set_rxfh,
|
.set_rxfh = enetc_set_rxfh,
|
||||||
.get_ringparam = enetc_get_ringparam,
|
.get_ringparam = enetc_get_ringparam,
|
||||||
|
.get_link = ethtool_op_get_link,
|
||||||
};
|
};
|
||||||
|
|
||||||
void enetc_set_ethtool_ops(struct net_device *ndev)
|
void enetc_set_ethtool_ops(struct net_device *ndev)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue