net: realtek: r8169: implement set_link_ksettings()
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Tue, 21 Nov 2017 15:15:57 +0000 (16:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Nov 2017 16:36:31 +0000 (01:36 +0900)
commit9e77d7a5549dc4d4999a60676373ab3fd1dae4db
treeec3e04198f75de5fe0e2f5e3a6e82a7490326825
parent98d11291d189cb5adf49694d0ad1b971c0212697
net: realtek: r8169: implement set_link_ksettings()

Commit 6fa1ba61520576cf1346c4ff09a056f2950cb3bf partially
implemented the new ethtool API, by replacing get_settings()
with get_link_ksettings(). This breaks ethtool, since the
userspace tool (according to the new API specs) never tries
the legacy set() call, when the new get() call succeeds.

All attempts to chance some setting from userspace result in:
> Cannot set new settings: Operation not supported

Implement the missing set() call.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c