aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_fw_defs.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:36:33 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:12 -0500
commitde832a55d28bdcc38a3f3c160554d2dfa5a62069 (patch)
tree21df2b3da20af907b36fa30e1229e4e87ee235a9 /drivers/net/bnx2x_fw_defs.h
parentd3d4f49527249e87d11219a22469dff25b674c08 (diff)
bnx2x: Per queue statistics
Re-ordering the statistics to enhance readability and adding per queue statistics (available via ethtool -S) Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_fw_defs.h')
-rw-r--r--drivers/net/bnx2x_fw_defs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_fw_defs.h b/drivers/net/bnx2x_fw_defs.h
index 9eb1d131179c..59bb13262585 100644
--- a/drivers/net/bnx2x_fw_defs.h
+++ b/drivers/net/bnx2x_fw_defs.h
@@ -107,6 +107,9 @@
107#define USTORM_DEF_SB_HOST_STATUS_BLOCK_OFFSET(function) \ 107#define USTORM_DEF_SB_HOST_STATUS_BLOCK_OFFSET(function) \
108 (IS_E1H_OFFSET ? (0x9508 + ((function>>1) * 0x40) + \ 108 (IS_E1H_OFFSET ? (0x9508 + ((function>>1) * 0x40) + \
109 ((function&1) * 0x100)) : (0x1908 + (function * 0x40))) 109 ((function&1) * 0x100)) : (0x1908 + (function * 0x40)))
110#define USTORM_ETH_STATS_QUERY_ADDR_OFFSET(function) \
111 (IS_E1H_OFFSET ? (0x2a50 + (function * 0x8)) : (0x1d98 + \
112 (function * 0x8)))
110#define USTORM_FUNCTION_MODE_OFFSET \ 113#define USTORM_FUNCTION_MODE_OFFSET \
111 (IS_E1H_OFFSET ? 0x2448 : 0xffffffff) 114 (IS_E1H_OFFSET ? 0x2448 : 0xffffffff)
112#define USTORM_HC_BTR_OFFSET(port) \ 115#define USTORM_HC_BTR_OFFSET(port) \
@@ -117,6 +120,9 @@
117#define USTORM_MEM_WORKAROUND_ADDRESS_OFFSET(function) \ 120#define USTORM_MEM_WORKAROUND_ADDRESS_OFFSET(function) \
118 (IS_E1H_OFFSET ? (0x2408 + (function * 0x8)) : (0x5308 + \ 121 (IS_E1H_OFFSET ? (0x2408 + (function * 0x8)) : (0x5308 + \
119 (function * 0x8))) 122 (function * 0x8)))
123#define USTORM_PER_COUNTER_ID_STATS_OFFSET(port, stats_counter_id) \
124 (IS_E1H_OFFSET ? (0x2450 + (port * 0x2d0) + (stats_counter_id * \
125 0x28)) : (0x4740 + (port * 0x2d0) + (stats_counter_id * 0x28)))
120#define USTORM_RX_PRODS_OFFSET(port, client_id) \ 126#define USTORM_RX_PRODS_OFFSET(port, client_id) \
121 (IS_E1H_OFFSET ? (0x8000 + (port * 0x4b0) + (client_id * 0x30)) \ 127 (IS_E1H_OFFSET ? (0x8000 + (port * 0x4b0) + (client_id * 0x30)) \
122 : (0x5318 + (port * 0x260) + (client_id * 0x20))) 128 : (0x5318 + (port * 0x260) + (client_id * 0x20)))
@@ -134,6 +140,9 @@
134#define USTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, cpu_id) \ 140#define USTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, cpu_id) \
135 (IS_E1H_OFFSET ? (0x9008 + (port * 0x280) + (cpu_id * 0x28)) : \ 141 (IS_E1H_OFFSET ? (0x9008 + (port * 0x280) + (cpu_id * 0x28)) : \
136 (0x1408 + (port * 0x280) + (cpu_id * 0x28))) 142 (0x1408 + (port * 0x280) + (cpu_id * 0x28)))
143#define USTORM_STATS_FLAGS_OFFSET(function) \
144 (IS_E1H_OFFSET ? (0x29f0 + (function * 0x8)) : (0x1d80 + \
145 (function * 0x8)))
137#define XSTORM_ASSERT_LIST_INDEX_OFFSET \ 146#define XSTORM_ASSERT_LIST_INDEX_OFFSET \
138 (IS_E1H_OFFSET ? 0x9000 : 0x1000) 147 (IS_E1H_OFFSET ? 0x9000 : 0x1000)
139#define XSTORM_ASSERT_LIST_OFFSET(idx) \ 148#define XSTORM_ASSERT_LIST_OFFSET(idx) \