diff options
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 | }; |