diff options
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 68d16dc6e7c8..4943cbe642ab 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -940,6 +940,15 @@ struct gfar_priv_tx_q { | |||
940 | unsigned short txtime; | 940 | unsigned short txtime; |
941 | }; | 941 | }; |
942 | 942 | ||
943 | /* | ||
944 | * Per RX queue stats | ||
945 | */ | ||
946 | struct rx_q_stats { | ||
947 | unsigned long rx_packets; | ||
948 | unsigned long rx_bytes; | ||
949 | unsigned long rx_dropped; | ||
950 | }; | ||
951 | |||
943 | /** | 952 | /** |
944 | * struct gfar_priv_rx_q - per rx queue structure | 953 | * struct gfar_priv_rx_q - per rx queue structure |
945 | * @rxlock: per queue rx spin lock | 954 | * @rxlock: per queue rx spin lock |
@@ -962,6 +971,7 @@ struct gfar_priv_rx_q { | |||
962 | struct rxbd8 *cur_rx; | 971 | struct rxbd8 *cur_rx; |
963 | struct net_device *dev; | 972 | struct net_device *dev; |
964 | struct gfar_priv_grp *grp; | 973 | struct gfar_priv_grp *grp; |
974 | struct rx_q_stats stats; | ||
965 | u16 skb_currx; | 975 | u16 skb_currx; |
966 | u16 qindex; | 976 | u16 qindex; |
967 | unsigned int rx_ring_size; | 977 | unsigned int rx_ring_size; |