Re: [PATCH v2] net: smsc: smc91x: use new api ethtool_{get|set}_link_ksettings

From: Robert Jarzmik
Date: Sun Mar 05 2017 - 09:19:49 EST


Philippe Reynes <tremyfr@xxxxxxxxx> writes:

> 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@xxxxxxxxx>
> ---
> Changelog:
> v2:
> - also update comment (feeback from Russel King)

Ok, I tested it, with :
ethtool -s eth0 duplex half autoneg off speed 10
ethtool eth0
=> see the changes
ping -f x.x.x.x
ethtool -s eth0 duplex full autoneg on
ethtool eth0
=> see the changes
ping -f x.x.x.x

This both with your patch and without, it works in both cases, and the former as
a smaller throughput, which makes me believe the patch is fine.

Tested-by: Robert Jarzmik <robert.jarzmik@xxxxxxx>

Cheers.

--
Robert