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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Dec 2017 14:07:55 +0000 (15:07 +0100)
commitc7203f55d53f9237bda0c0b6cf02f22f18262a5b
treece7ab1c203cd957d9b1394712d48937fb0886d74
parentec9a6722173d3dbbbbcc5eec2f5b0f2c58057bc9
net: realtek: r8169: implement set_link_ksettings()

[ Upstream commit 9e77d7a5549dc4d4999a60676373ab3fd1dae4db ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169.c