diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2016-02-03 04:04:37 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-07 14:30:45 -0500 |
commit | 16032be56c1f66770da15cb94f0eb366c37aff6e (patch) | |
tree | 1e2505c493c436ad2caca684eedd8bcb50988027 /net/ax25 | |
parent | 103a8ad1fa3b261c78dfc842cb315defe9d40be0 (diff) |
virtio_net: add ethtool support for set and get of settings
This patch allows the user to set and retrieve speed and duplex of the
virtio_net device via ethtool. Having this functionality is very helpful
for simulating different environments and also enables the virtio_net
device to participate in operations where proper speed and duplex are
required (e.g. currently bonding lacp mode requires full duplex). Custom
speed and duplex are not allowed, the user-supplied settings are validated
before applying.
Example:
$ ethtool eth1
Settings for eth1:
...
Speed: Unknown!
Duplex: Unknown! (255)
$ ethtool -s eth1 speed 1000 duplex full
$ ethtool eth1
Settings for eth1:
...
Speed: 1000Mb/s
Duplex: Full
Based on a patch by Roopa Prabhu.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions