ethtool: Factored out similar ethtool link settings for virtual devices to core
authorCris Forno <cforno12@linux.vnet.ibm.com>
Fri, 28 Feb 2020 20:12:04 +0000 (14:12 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Mar 2020 05:48:54 +0000 (21:48 -0800)
commit70ae1e127b486704c62d3537d69ca65c446d4d83
treed67755170562f069e49caa98a71a17a88c39a135
parent68e2c37690b0da7539cfa2928bf1e4f50d88a1bb
ethtool: Factored out similar ethtool link settings for virtual devices to core

Three virtual devices (ibmveth, virtio_net, and netvsc) all have
similar code to set link settings and validate ethtool command. To
eliminate duplication of code, it is factored out into core/ethtool.c.

Signed-off-by: Cris Forno <cforno12@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h
net/ethtool/ioctl.c