Commit 385b9037 authored by Stephen Hemminger's avatar Stephen Hemminger

[PATCH] sk98: basic ethtool support

The basic stuff comes from the newer code from SysKonnect, but I redid
it using ethtool_ops and a cleaner way of doing the stats (from e100)
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 696ca3ef
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
obj-$(CONFIG_SK98LIN) += sk98lin.o obj-$(CONFIG_SK98LIN) += sk98lin.o
sk98lin-objs := \ sk98lin-objs := \
skge.o \ skge.o \
skethtool.o \
skdim.o \ skdim.o \
skaddr.o \ skaddr.o \
skgehwt.o \ skgehwt.o \
......
This diff is collapsed.
...@@ -269,6 +269,7 @@ static void DumpLong(char*, int); ...@@ -269,6 +269,7 @@ static void DumpLong(char*, int);
/* global variables *********************************************************/ /* global variables *********************************************************/
static SK_BOOL DoPrintInterfaceChange = SK_TRUE; static SK_BOOL DoPrintInterfaceChange = SK_TRUE;
extern struct ethtool_ops SkGeEthtoolOps;
/* local variables **********************************************************/ /* local variables **********************************************************/
static uintptr_t TxQueueAddr[SK_MAX_MACS][2] = {{0x680, 0x600},{0x780, 0x700}}; static uintptr_t TxQueueAddr[SK_MAX_MACS][2] = {{0x680, 0x600},{0x780, 0x700}};
...@@ -4956,6 +4957,7 @@ static int __devinit skge_probe_one(struct pci_dev *pdev, ...@@ -4956,6 +4957,7 @@ static int __devinit skge_probe_one(struct pci_dev *pdev,
#endif #endif
dev->flags &= ~IFF_RUNNING; dev->flags &= ~IFF_RUNNING;
SET_NETDEV_DEV(dev, &pdev->dev); SET_NETDEV_DEV(dev, &pdev->dev);
SET_ETHTOOL_OPS(dev, &SkGeEthtoolOps);
#ifdef SK_ZEROCOPY #ifdef SK_ZEROCOPY
#ifdef USE_SK_TX_CHECKSUM #ifdef USE_SK_TX_CHECKSUM
...@@ -5028,6 +5030,8 @@ static int __devinit skge_probe_one(struct pci_dev *pdev, ...@@ -5028,6 +5030,8 @@ static int __devinit skge_probe_one(struct pci_dev *pdev,
dev->do_ioctl = &SkGeIoctl; dev->do_ioctl = &SkGeIoctl;
dev->change_mtu = &SkGeChangeMtu; dev->change_mtu = &SkGeChangeMtu;
dev->flags &= ~IFF_RUNNING; dev->flags &= ~IFF_RUNNING;
SET_NETDEV_DEV(dev, &pdev->dev);
SET_ETHTOOL_OPS(dev, &SkGeEthtoolOps);
#ifdef SK_ZEROCOPY #ifdef SK_ZEROCOPY
#ifdef USE_SK_TX_CHECKSUM #ifdef USE_SK_TX_CHECKSUM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment