]> git.baikalelectronics.ru Git - kernel.git/commit
hv_netvsc: add ethtool support for set and get of settings
authorsixiao@microsoft.com <sixiao@microsoft.com>
Thu, 25 Feb 2016 23:24:08 +0000 (15:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Feb 2016 22:08:50 +0000 (17:08 -0500)
commit09314e7703f9416e0b89de6a354cc3be40cb5581
treeebf8dcecb343fcf13f1020d118c210a1fbd6ebb9
parentb9916c7a4d40f686e6a2619690ac11b9153005ee
hv_netvsc: add ethtool support for set and get of settings

This patch allows the user to set and retrieve speed and duplex of the
hv_netvsc device via ethtool.

Example:
$ ethtool eth0
Settings for eth0:
...
    Speed: Unknown!
    Duplex: Unknown! (255)
...
$ ethtool -s eth0 speed 1000 duplex full
$ ethtool eth0
Settings for eth0:
...
    Speed: 1000Mb/s
    Duplex: Full
...

This is based on patches by Roopa Prabhu and Nikolay Aleksandrov.

Signed-off-by: Simon Xiao <sixiao@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/hyperv_net.h
drivers/net/hyperv/netvsc_drv.c