diff options
Diffstat (limited to 'src/include/gpxe')
-rw-r--r-- | src/include/gpxe/netdevice.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gpxe/netdevice.h b/src/include/gpxe/netdevice.h index 0060e7d5..c0df7c96 100644 --- a/src/include/gpxe/netdevice.h +++ b/src/include/gpxe/netdevice.h @@ -129,6 +129,17 @@ struct ll_protocol { }; /** + * Network device statistics + * + */ +struct net_device_stats { + /** Count of successfully completed transmissions */ + unsigned int tx_count; + /** Count of successfully received packets */ + unsigned int rx_count; +}; + +/** * A network device * * This structure represents a piece of networking hardware. It has @@ -215,6 +226,8 @@ struct net_device { struct list_head tx_queue; /** RX packet queue */ struct list_head rx_queue; + /** Device statistics */ + struct net_device_stats stats; /** Driver private data */ void *priv; |