aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
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_ */