diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-02-12 03:36:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:31:14 -0500 |
commit | 8a1c38d17d88c8df3dcbea1c01a390ab2087f8ad (patch) | |
tree | 786527b3f4b3b7af13380fdc752f00898ebddf44 /drivers/net/bnx2x_hsi.h | |
parent | 748e543974eec6afb1f55f8430781150d0da8b0a (diff) |
bnx2x: BW shaper enhancements
Some of the configuration can be set when loading the device and shouldn't be
re-calculated after each link up indication since it is not dependent on the
link speed
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.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h index 40061b37b76c..a4a6039ef8cf 100644 --- a/drivers/net/bnx2x_hsi.h +++ b/drivers/net/bnx2x_hsi.h | |||
@@ -2640,17 +2640,19 @@ struct ustorm_eth_rx_producers { | |||
2640 | */ | 2640 | */ |
2641 | struct cmng_flags_per_port { | 2641 | struct cmng_flags_per_port { |
2642 | u8 con_number[NUM_OF_PROTOCOLS]; | 2642 | u8 con_number[NUM_OF_PROTOCOLS]; |
2643 | #if defined(__BIG_ENDIAN) | 2643 | u32 cmng_enables; |
2644 | u8 fairness_enable; | 2644 | #define CMNG_FLAGS_PER_PORT_FAIRNESS_VN (0x1<<0) |
2645 | u8 rate_shaping_enable; | 2645 | #define CMNG_FLAGS_PER_PORT_FAIRNESS_VN_SHIFT 0 |
2646 | u8 cmng_protocol_enable; | 2646 | #define CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN (0x1<<1) |
2647 | u8 cmng_vn_enable; | 2647 | #define CMNG_FLAGS_PER_PORT_RATE_SHAPING_VN_SHIFT 1 |
2648 | #elif defined(__LITTLE_ENDIAN) | 2648 | #define CMNG_FLAGS_PER_PORT_FAIRNESS_PROTOCOL (0x1<<2) |
2649 | u8 cmng_vn_enable; | 2649 | #define CMNG_FLAGS_PER_PORT_FAIRNESS_PROTOCOL_SHIFT 2 |
2650 | u8 cmng_protocol_enable; | 2650 | #define CMNG_FLAGS_PER_PORT_RATE_SHAPING_PROTOCOL (0x1<<3) |
2651 | u8 rate_shaping_enable; | 2651 | #define CMNG_FLAGS_PER_PORT_RATE_SHAPING_PROTOCOL_SHIFT 3 |
2652 | u8 fairness_enable; | 2652 | #define CMNG_FLAGS_PER_PORT_FAIRNESS_COS (0x1<<4) |
2653 | #endif | 2653 | #define CMNG_FLAGS_PER_PORT_FAIRNESS_COS_SHIFT 4 |
2654 | #define __CMNG_FLAGS_PER_PORT_RESERVED0 (0x7FFFFFF<<5) | ||
2655 | #define __CMNG_FLAGS_PER_PORT_RESERVED0_SHIFT 5 | ||
2654 | }; | 2656 | }; |
2655 | 2657 | ||
2656 | 2658 | ||
@@ -2803,6 +2805,7 @@ struct eth_stats_query { | |||
2803 | * per-vnic fairness variables | 2805 | * per-vnic fairness variables |
2804 | */ | 2806 | */ |
2805 | struct fairness_vars_per_vn { | 2807 | struct fairness_vars_per_vn { |
2808 | u32 cos_credit_delta[MAX_COS_NUMBER]; | ||
2806 | u32 protocol_credit_delta[NUM_OF_PROTOCOLS]; | 2809 | u32 protocol_credit_delta[NUM_OF_PROTOCOLS]; |
2807 | u32 vn_credit_delta; | 2810 | u32 vn_credit_delta; |
2808 | u32 __reserved0; | 2811 | u32 __reserved0; |