]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb71a063a4e776ddb0504d163d681fae4c4cf678b
treeec3e04198f75de5fe0e2f5e3a6e82a7490326825
parentfab265f0c838e3629808c5b67986439425fd21ec
net: realtek: r8169: implement set_link_ksettings()

Commit cea1c9cc4dd192a3f476342a88990d7823e8507e 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