]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit663ca6c52ed317fb620ab9cba267dbb764ebed73
treebcf5d31193b2b0c6df4b70b51da15beef8af3b56
parentffabb096f1cd667fb5526cab334b4e0abb846b95
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