net: mellanox: switchx2: use new api ethtool_{get|set}_link_ksettings
authorPhilippe Reynes <tremyfr@gmail.com>
Tue, 7 Feb 2017 23:07:33 +0000 (00:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 19:35:26 +0000 (14:35 -0500)
commit40710cf9ad234778eb8b10ef07d922f435005cf7
tree51f77dbff6c2f8ae0b1b456ae8aa98c3f2d82c6a
parent3c19bd6c52d441893ba19b3418825b27cfa4fd9c
net: mellanox: switchx2: 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.

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>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Tested-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/switchx2.c