aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2009-03-13 18:13:28 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-14 15:41:08 -0400
commit509ee935ec0828e534e4d48d08d4d0b4bc17ea92 (patch)
treed50803203ef9ec0e528f37546d2e9d3488747c43 /drivers/net/ixgbe/ixgbe.h
parent40dcd79a7bd2e0d6bf4680db4bc0268c9f149a1d (diff)
ixgbe: Fix interrupt configuration for 82599
The interrupt models using EITR have changed in 82599. The way the register is laid out, the change is transparent to some of the existing code. However, some of it isn't. This patch fixes all the cases where EITR handling is different than 82598. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r--drivers/net/ixgbe/ixgbe.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 0b54717f707d..c26433d14605 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -189,10 +189,11 @@ struct ixgbe_q_vector {
189}; 189};
190 190
191/* Helper macros to switch between ints/sec and what the register uses. 191/* Helper macros to switch between ints/sec and what the register uses.
192 * And yes, it's the same math going both ways. 192 * And yes, it's the same math going both ways. The lowest value
193 * supported by all of the ixgbe hardware is 8.
193 */ 194 */
194#define EITR_INTS_PER_SEC_TO_REG(_eitr) \ 195#define EITR_INTS_PER_SEC_TO_REG(_eitr) \
195 ((_eitr) ? (1000000000 / ((_eitr) * 256)) : 0) 196 ((_eitr) ? (1000000000 / ((_eitr) * 256)) : 8)
196#define EITR_REG_TO_INTS_PER_SEC EITR_INTS_PER_SEC_TO_REG 197#define EITR_REG_TO_INTS_PER_SEC EITR_INTS_PER_SEC_TO_REG
197 198
198#define IXGBE_DESC_UNUSED(R) \ 199#define IXGBE_DESC_UNUSED(R) \
@@ -366,5 +367,6 @@ extern void ixgbe_reset_interrupt_capability(struct ixgbe_adapter *adapter);
366extern int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter); 367extern int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter);
367void ixgbe_napi_add_all(struct ixgbe_adapter *adapter); 368void ixgbe_napi_add_all(struct ixgbe_adapter *adapter);
368void ixgbe_napi_del_all(struct ixgbe_adapter *adapter); 369void ixgbe_napi_del_all(struct ixgbe_adapter *adapter);
370extern void ixgbe_write_eitr(struct ixgbe_adapter *, int, u32);
369 371
370#endif /* _IXGBE_H_ */ 372#endif /* _IXGBE_H_ */