aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
diff options
context:
space:
mode:
authorJie Deng <Jie.Deng1@synopsys.com>2017-04-12 13:10:06 +0800
committerDavid S. Miller <davem@davemloft.net>2017-04-13 13:46:38 -0400
commitd4d49bc145e830fdcfdcfba9ef4b7db5d0b1f8a7 (patch)
treefa3d2ca27451ad47a20d8e8d425e7ac23b570c5b /drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
parentnet: ipv4: Refine the ipv4_default_advmss (diff)
downloadlinux-dev-d4d49bc145e830fdcfdcfba9ef4b7db5d0b1f8a7.tar.xz
linux-dev-d4d49bc145e830fdcfdcfba9ef4b7db5d0b1f8a7.zip
net: dwc-xlgmac: add the initial ethtool support
It is necessary to provide ethtool support for displaying and modifying parameters of dwc-xlgmac. Signed-off-by: Jie Deng <jiedeng@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/synopsys/dwc-xlgmac-common.c')
-rw-r--r--drivers/net/ethernet/synopsys/dwc-xlgmac-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/synopsys/dwc-xlgmac-common.c b/drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
index 07def2beabfa..d655a4261e98 100644
--- a/drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
+++ b/drivers/net/ethernet/synopsys/dwc-xlgmac-common.c
@@ -175,6 +175,7 @@ static int xlgmac_init(struct xlgmac_pdata *pdata)
/* Set device operations */
netdev->netdev_ops = xlgmac_get_netdev_ops();
+ netdev->ethtool_ops = xlgmac_get_ethtool_ops();
/* Set device features */
if (pdata->hw_feat.tso) {