net: qcom/emac: add ethtool support
authorTimur Tabi <timur@codeaurora.org>
Mon, 9 Jan 2017 18:03:12 +0000 (12:03 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Jan 2017 18:26:25 +0000 (13:26 -0500)
commit79f664edc1cf51a87d6681514ec89b6da5fef8e1
treebcf5d31193b2b0c6df4b70b51da15beef8af3b56
parent3a89eaa65db68bf53bf92dedc60084f810e1779a
net: qcom/emac: add ethtool support

Add support for some ethtool methods: get/set link settings, get/set
message level, get statistics, get link status, get ring params, get
pause params, and restart autonegotiation.

The code to collect the hardware statistics is moved into its own
function so that it can be used by "get statistics" method.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/Makefile
drivers/net/ethernet/qualcomm/emac/emac-ethtool.c [new file with mode: 0644]
drivers/net/ethernet/qualcomm/emac/emac.c
drivers/net/ethernet/qualcomm/emac/emac.h