aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
authorVladislav Zolotarov <vladz@broadcom.com>2010-04-18 21:13:57 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-19 16:17:08 -0400
commitcdaa7cb84b63e0491582ef62fd0c7bf22a57e519 (patch)
treebdf17500a3e7670434c8ce96c1ceb581fdaa32d9 /drivers/net/bnx2x.h
parent2145a92057a94d2d1e3e9674fe03774cda7455ad (diff)
bnx2x: White spaces
White spaces, code readability and prints. Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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 150bd08ed5b..bdfe084b8ab 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