]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: marvell: skge: use new api ethtool_{get|set}_link_ksettings
authorPhilippe Reynes <tremyfr@gmail.com>
Mon, 16 Jan 2017 21:46:08 +0000 (22:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2017 16:44:27 +0000 (11:44 -0500)
commit0f826385a6fa699d31fc1f835fb9ef9a724b523e
tree084745b3d2f91f5e9c40a4e58d23b633177286c1
parentc523838c8514e1fdccc60b0a584bae374e6c5c0f
net: marvell: skge: use new api ethtool_{get|set}_link_ksettings

The ethtool api {get|set}_settings is deprecated.
We move this driver to new api {get|set}_link_ksettings.

The callback set_link_ksettings no longer update the value
of advertising, as the struct ethtool_link_ksettings is
defined as const.

As I don't have the hardware, I'd be very pleased if
someone may test this patch.

Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/skge.c