]> git.baikalelectronics.ru Git - kernel.git/commit
net: xilinx: emaclite: add minimal ethtool ops
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 8 Apr 2019 09:01:36 +0000 (12:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 16:59:41 +0000 (09:59 -0700)
commitcc4f3cdf452004c950e81b2b9b747f38d3881b4e
treeae42d5d97f0995359d4d25eb2dd86faba44c8091
parent17f9eef934cf7d440fcbc4dc0997ac0c7d211743
net: xilinx: emaclite: add minimal ethtool ops

This set adds a minimal set of ethtool hooks to the driver, which provide a
decent amount of link information via ethtool.
With this change, running `ethtool ethX` in user-space provides all the
neatly-formatted information about the link (what was negotiated, what is
advertised, etc).

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c