net: mii: add generic function to support ksetting support
authorPhilippe Reynes <tremyfr@gmail.com>
Tue, 1 Nov 2016 15:32:25 +0000 (16:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Nov 2016 19:17:09 +0000 (15:17 -0400)
commitbc8ee596afe8f35b379f87575c46d800dd8e7e68
treef230db0a33ec8f63663cce5c787310db9505cf2b
parent55454e9e5c92471acebf0fe7262f5de4719db8f0
net: mii: add generic function to support ksetting support

The old ethtool api (get_setting and set_setting) has generic mii
functions mii_ethtool_sset and mii_ethtool_gset.

To support the new ethtool api ({get|set}_link_ksettings), we add
two generics mii function mii_ethtool_{get|set}_link_ksettings_get.

Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mii.c
include/linux/mii.h