aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_hsi.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_hsi.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_hsi.h')
-rw-r--r--drivers/net/bnx2x_hsi.h37
1 files changed, 32 insertions, 5 deletions
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h
index 25751a2b7a24..40061b37b76c 100644
--- a/drivers/net/bnx2x_hsi.h
+++ b/drivers/net/bnx2x_hsi.h
@@ -641,7 +641,8 @@ struct drv_port_mb {
641 641
642 u32 port_stx; 642 u32 port_stx;
643 643
644 u32 reserved[2]; 644 u32 stat_nig_timer;
645
645 646
646}; 647};
647 648
@@ -1429,8 +1430,10 @@ struct ustorm_eth_st_context_config {
1429#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_TPA_SHIFT 2 1430#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_TPA_SHIFT 2
1430#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING (0x1<<3) 1431#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING (0x1<<3)
1431#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING_SHIFT 3 1432#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING_SHIFT 3
1432#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0 (0xF<<4) 1433#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_STATISTICS (0x1<<4)
1433#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0_SHIFT 4 1434#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_STATISTICS_SHIFT 4
1435#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0 (0x7<<5)
1436#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0_SHIFT 5
1434 u8 status_block_id; 1437 u8 status_block_id;
1435 u8 clientId; 1438 u8 clientId;
1436 u8 sb_index_numbers; 1439 u8 sb_index_numbers;
@@ -1455,8 +1458,10 @@ struct ustorm_eth_st_context_config {
1455#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_TPA_SHIFT 2 1458#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_TPA_SHIFT 2
1456#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING (0x1<<3) 1459#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING (0x1<<3)
1457#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING_SHIFT 3 1460#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_SGE_RING_SHIFT 3
1458#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0 (0xF<<4) 1461#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_STATISTICS (0x1<<4)
1459#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0_SHIFT 4 1462#define USTORM_ETH_ST_CONTEXT_CONFIG_ENABLE_STATISTICS_SHIFT 4
1463#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0 (0x7<<5)
1464#define __USTORM_ETH_ST_CONTEXT_CONFIG_RESERVED0_SHIFT 5
1460#endif 1465#endif
1461#if defined(__BIG_ENDIAN) 1466#if defined(__BIG_ENDIAN)
1462 u16 bd_buff_size; 1467 u16 bd_buff_size;
@@ -2764,11 +2769,33 @@ struct tstorm_common_stats {
2764}; 2769};
2765 2770
2766/* 2771/*
2772 * Protocol-common statistics collected by the Ustorm (per client)
2773 */
2774struct ustorm_per_client_stats {
2775 struct regpair ucast_no_buff_bytes;
2776 struct regpair mcast_no_buff_bytes;
2777 struct regpair bcast_no_buff_bytes;
2778 __le32 ucast_no_buff_pkts;
2779 __le32 mcast_no_buff_pkts;
2780 __le32 bcast_no_buff_pkts;
2781 __le16 stats_counter;
2782 __le16 reserved0;
2783};
2784
2785/*
2786 * Protocol-common statistics collected by the Ustorm
2787 */
2788struct ustorm_common_stats {
2789 struct ustorm_per_client_stats client_statistics[MAX_U_STAT_COUNTER_ID];
2790};
2791
2792/*
2767 * Eth statistics query structure for the eth_stats_query ramrod 2793 * Eth statistics query structure for the eth_stats_query ramrod
2768 */ 2794 */
2769struct eth_stats_query { 2795struct eth_stats_query {
2770 struct xstorm_common_stats xstorm_common; 2796 struct xstorm_common_stats xstorm_common;
2771 struct tstorm_common_stats tstorm_common; 2797 struct tstorm_common_stats tstorm_common;
2798 struct ustorm_common_stats ustorm_common;
2772}; 2799};
2773 2800
2774 2801