]> 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)
commit49a0ee5aa50f97f354498cb934d4409a6aee6f78
treeec3e04198f75de5fe0e2f5e3a6e82a7490326825
parenta7213d34da4d7a0328c93fc78d45fe23f77a0306
net: realtek: r8169: implement set_link_ksettings()

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