master/ethernet.h
changeset 1485 5ddc3a455059
parent 1363 11c0b2caa253
child 1486 dac749e74956
--- a/master/ethernet.h	Fri Jun 26 08:00:47 2009 +0000
+++ b/master/ethernet.h	Fri Jun 26 09:46:57 2009 +0000
@@ -34,6 +34,9 @@
 
 /*****************************************************************************/
 
+#ifndef __EC_ETHERNET_H__
+#define __EC_ETHERNET_H__
+
 #include <linux/list.h>
 #include <linux/netdevice.h>
 
@@ -82,6 +85,7 @@
     uint32_t rx_counter; /**< octets received during last second */
     uint32_t rx_rate; /**< receive rate (bps) */
     struct list_head tx_queue; /**< queue for frames to send */
+    unsigned int tx_queue_size; /**< Transmit queue size. */
     unsigned int tx_queue_active; /**< kernel netif queue started */
     unsigned int tx_queued_frames; /**< number of frames in the queue */
     spinlock_t tx_queue_lock; /**< spinlock for the send queue */
@@ -102,3 +106,7 @@
 int ec_eoe_is_open(const ec_eoe_t *);
 
 /*****************************************************************************/
+
+#endif
+
+/*****************************************************************************/