ethtool: Use full 32 bit speed range in ethtool's set_settings
This makes sure the ethtool's set_settings() callback of network drivers don't ignore the 16 most significant bits when ethtool calls their set_settings(). All drivers compiled with make allyesconfig on x86_64 have been updated. Signed-off-by: David Decotigny <decot@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8ae6daca85
commit
25db033881
@ -6859,7 +6859,7 @@ static int niu_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
|
||||
struct niu_link_config *lp = &np->link_config;
|
||||
|
||||
lp->advertising = cmd->advertising;
|
||||
lp->speed = cmd->speed;
|
||||
lp->speed = ethtool_cmd_speed(cmd);
|
||||
lp->duplex = cmd->duplex;
|
||||
lp->autoneg = cmd->autoneg;
|
||||
return niu_init_link(np);
|
||||
|
Reference in New Issue
Block a user