]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/ixgbe/ixgbe.h
ixgbe: Introduce adaptive interrupt moderation
[net-next-2.6.git] / drivers / net / ixgbe / ixgbe.h
index 20774772b608b17d156367fb17bf3977331fbbd9..79f5519e2aa974337f19f1f8bf9be67e1c985fa7 100644 (file)
@@ -136,6 +136,8 @@ struct ixgbe_ring {
        u16 head;
        u16 tail;
 
+       unsigned int total_bytes;
+       unsigned int total_packets;
 
        u16 reg_idx; /* holds the special value that gets the hardware register
                      * offset associated with this ring, which is different
@@ -174,6 +176,8 @@ struct ixgbe_q_vector {
        DECLARE_BITMAP(txr_idx, MAX_TX_QUEUES); /* Tx ring indices */
        u8 rxr_count;     /* Rx ring count assigned to this vector */
        u8 txr_count;     /* Tx ring count assigned to this vector */
+       u8 tx_eitr;
+       u8 rx_eitr;
        u32 eitr;
 };
 
@@ -215,6 +219,11 @@ struct ixgbe_adapter {
        struct ixgbe_q_vector q_vector[MAX_MSIX_Q_VECTORS];
        char name[MAX_MSIX_COUNT][IFNAMSIZ + 5];
 
+       /* Interrupt Throttle Rate */
+       u32 itr_setting;
+       u16 eitr_low;
+       u16 eitr_high;
+
        /* TX */
        struct ixgbe_ring *tx_ring;     /* One per active queue */
        u64 restart_queue;