aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r--drivers/net/bnx2x.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index 150bd08ed5be..bdfe084b8abe 100644
--- a/drivers/net/bnx2x.h
+++ b/drivers/net/bnx2x.h
@@ -83,7 +83,12 @@ do { \
83 __func__, __LINE__, \ 83 __func__, __LINE__, \
84 bp->dev ? (bp->dev->name) : "?", \ 84 bp->dev ? (bp->dev->name) : "?", \
85 ##__args); \ 85 ##__args); \
86} while (0) 86 } while (0)
87
88#define BNX2X_ERROR(__fmt, __args...) do { \
89 pr_err("[%s:%d]" __fmt, __func__, __LINE__, ##__args); \
90 } while (0)
91
87 92
88/* before we have a dev->name use dev_info() */ 93/* before we have a dev->name use dev_info() */
89#define BNX2X_DEV_INFO(__fmt, __args...) \ 94#define BNX2X_DEV_INFO(__fmt, __args...) \
@@ -975,6 +980,8 @@ struct bnx2x {
975 u16 rx_quick_cons_trip; 980 u16 rx_quick_cons_trip;
976 u16 rx_ticks_int; 981 u16 rx_ticks_int;
977 u16 rx_ticks; 982 u16 rx_ticks;
983/* Maximal coalescing timeout in us */
984#define BNX2X_MAX_COALESCE_TOUT (0xf0*12)
978 985
979 u32 lin_cnt; 986 u32 lin_cnt;
980 987