mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
ethtool: Factored out similar ethtool link settings for virtual devices to core
Three virtual devices (ibmveth, virtio_net, and netvsc) all have similar code to set link settings and validate ethtool command. To eliminate duplication of code, it is factored out into core/ethtool.c. Signed-off-by: Cris Forno <cforno12@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
68e2c37690
commit
70ae1e127b
2 changed files with 45 additions and 0 deletions
|
@ -420,4 +420,10 @@ struct ethtool_rx_flow_rule *
|
|||
ethtool_rx_flow_rule_create(const struct ethtool_rx_flow_spec_input *input);
|
||||
void ethtool_rx_flow_rule_destroy(struct ethtool_rx_flow_rule *rule);
|
||||
|
||||
bool ethtool_virtdev_validate_cmd(const struct ethtool_link_ksettings *cmd);
|
||||
int ethtool_virtdev_set_link_ksettings(struct net_device *dev,
|
||||
const struct ethtool_link_ksettings *cmd,
|
||||
u32 *dev_speed, u8 *dev_duplex);
|
||||
|
||||
|
||||
#endif /* _LINUX_ETHTOOL_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue