diff options
author | Bryan Whitehead <Bryan.Whitehead@microchip.com> | 2018-07-23 16:16:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-23 14:09:18 -0700 |
commit | 0cf632265d6753e9bcdf2bc196999ea40c02f2dd (patch) | |
tree | 6c2b2144cb5cb2f9fc000014a021dc64d3c22df3 /drivers/net/ethernet/microchip/lan743x_main.c | |
parent | 8760c4d6d5f7e5920edc34ee0785aeeda766842b (diff) | |
download | linux-0cf632265d6753e9bcdf2bc196999ea40c02f2dd.tar.bz2 |
lan743x: Add support for ethtool get_drvinfo
Implement ethtool get_drvinfo
Signed-off-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/lan743x_main.c')
-rw-r--r-- | drivers/net/ethernet/microchip/lan743x_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index e1747a490066..ade3b04b2de6 100644 --- a/drivers/net/ethernet/microchip/lan743x_main.c +++ b/drivers/net/ethernet/microchip/lan743x_main.c @@ -12,6 +12,7 @@ #include <linux/rtnetlink.h> #include <linux/iopoll.h> #include "lan743x_main.h" +#include "lan743x_ethtool.h" static void lan743x_pci_cleanup(struct lan743x_adapter *adapter) { @@ -2689,6 +2690,7 @@ static int lan743x_pcidev_probe(struct pci_dev *pdev, goto cleanup_hardware; adapter->netdev->netdev_ops = &lan743x_netdev_ops; + adapter->netdev->ethtool_ops = &lan743x_ethtool_ops; adapter->netdev->features = NETIF_F_SG | NETIF_F_TSO | NETIF_F_HW_CSUM; adapter->netdev->hw_features = adapter->netdev->features; |