diff options
Diffstat (limited to 'drivers/net/ixp2000/ixpdev.c')
-rw-r--r-- | drivers/net/ixp2000/ixpdev.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ixp2000/ixpdev.c b/drivers/net/ixp2000/ixpdev.c index 6baf3c94b3e8..e9d9d595e1b7 100644 --- a/drivers/net/ixp2000/ixpdev.c +++ b/drivers/net/ixp2000/ixpdev.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include "ixp2400_tx.ucode" | 21 | #include "ixp2400_tx.ucode" |
22 | #include "ixpdev_priv.h" | 22 | #include "ixpdev_priv.h" |
23 | #include "ixpdev.h" | 23 | #include "ixpdev.h" |
24 | #include "pm3386.h" | ||
24 | 25 | ||
25 | #define DRV_MODULE_VERSION "0.2" | 26 | #define DRV_MODULE_VERSION "0.2" |
26 | 27 | ||
@@ -270,6 +271,15 @@ static int ixpdev_close(struct net_device *dev) | |||
270 | return 0; | 271 | return 0; |
271 | } | 272 | } |
272 | 273 | ||
274 | static struct net_device_stats *ixpdev_get_stats(struct net_device *dev) | ||
275 | { | ||
276 | struct ixpdev_priv *ip = netdev_priv(dev); | ||
277 | |||
278 | pm3386_get_stats(ip->channel, &(dev->stats)); | ||
279 | |||
280 | return &(dev->stats); | ||
281 | } | ||
282 | |||
273 | static const struct net_device_ops ixpdev_netdev_ops = { | 283 | static const struct net_device_ops ixpdev_netdev_ops = { |
274 | .ndo_open = ixpdev_open, | 284 | .ndo_open = ixpdev_open, |
275 | .ndo_stop = ixpdev_close, | 285 | .ndo_stop = ixpdev_close, |
@@ -277,6 +287,7 @@ static const struct net_device_ops ixpdev_netdev_ops = { | |||
277 | .ndo_change_mtu = eth_change_mtu, | 287 | .ndo_change_mtu = eth_change_mtu, |
278 | .ndo_validate_addr = eth_validate_addr, | 288 | .ndo_validate_addr = eth_validate_addr, |
279 | .ndo_set_mac_address = eth_mac_addr, | 289 | .ndo_set_mac_address = eth_mac_addr, |
290 | .ndo_get_stats = ixpdev_get_stats, | ||
280 | #ifdef CONFIG_NET_POLL_CONTROLLER | 291 | #ifdef CONFIG_NET_POLL_CONTROLLER |
281 | .ndo_poll_controller = ixpdev_poll_controller, | 292 | .ndo_poll_controller = ixpdev_poll_controller, |
282 | #endif | 293 | #endif |