diff options
author | Jim Lewis <jklewis@us.ibm.com> | 2006-09-22 20:22:53 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-22 20:26:02 -0400 |
commit | 9b6b0b81f0de6a17ce57c818d1f403253c200e1f (patch) | |
tree | 51706d05197363768630bdcbd5249c906f9567f9 /drivers/net/spider_net.h | |
parent | 78cc3b78c4208d28e7f4ecded82e238224ed4d1c (diff) |
[PATCH] Spidernet: add ethtool -S (show statistics)
Add the ethtool -S (show statistics) feature to the Spidernet ethernet
driver. I have tested it extensively and believe it is ready to be
applied.
Signed-off-by: James K Lewis <jklewis@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/spider_net.h')
-rw-r--r-- | drivers/net/spider_net.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/spider_net.h b/drivers/net/spider_net.h index 2e80882b345a..a59deda2f95e 100644 --- a/drivers/net/spider_net.h +++ b/drivers/net/spider_net.h | |||
@@ -415,6 +415,15 @@ struct spider_net_options { | |||
415 | NETIF_MSG_HW | \ | 415 | NETIF_MSG_HW | \ |
416 | NETIF_MSG_WOL ) | 416 | NETIF_MSG_WOL ) |
417 | 417 | ||
418 | struct spider_net_extra_stats { | ||
419 | unsigned long rx_desc_error; | ||
420 | unsigned long tx_timeouts; | ||
421 | unsigned long alloc_rx_skb_error; | ||
422 | unsigned long rx_iommu_map_error; | ||
423 | unsigned long tx_iommu_map_error; | ||
424 | unsigned long rx_desc_unk_state; | ||
425 | }; | ||
426 | |||
418 | struct spider_net_card { | 427 | struct spider_net_card { |
419 | struct net_device *netdev; | 428 | struct net_device *netdev; |
420 | struct pci_dev *pdev; | 429 | struct pci_dev *pdev; |
@@ -439,9 +448,9 @@ struct spider_net_card { | |||
439 | 448 | ||
440 | /* for ethtool */ | 449 | /* for ethtool */ |
441 | int msg_enable; | 450 | int msg_enable; |
442 | |||
443 | int rx_desc; | 451 | int rx_desc; |
444 | int tx_desc; | 452 | int tx_desc; |
453 | struct spider_net_extra_stats spider_stats; | ||
445 | 454 | ||
446 | struct spider_net_descr descr[0]; | 455 | struct spider_net_descr descr[0]; |
447 | }; | 456 | }; |