aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x
diff options
context:
space:
mode:
authorDmitry Kravkov <dmitry@broadcom.com>2011-03-06 05:51:37 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-06 21:06:04 -0500
commit9b3de1ef1ba0aa1129a9f857f07a6a97d954c6fd (patch)
tree9456f9b8c4f5ce7b788afffaf996aa41348932e1 /drivers/net/bnx2x
parente3835b99333eb3ac7222f6fc0af5cae46074ac49 (diff)
bnx2x: fix MaxBW configuration
Increase resolution of MaxBW algorithm to suit Min Bandwidth configuration. Signed-off-by: Dmitry Kravkov <dmitry@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')
-rw-r--r--drivers/net/bnx2x/bnx2x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h
index 2ac4e3c597fa..8849699c66c4 100644
--- a/drivers/net/bnx2x/bnx2x.h
+++ b/drivers/net/bnx2x/bnx2x.h
@@ -1617,8 +1617,8 @@ static inline u32 reg_poll(struct bnx2x *bp, u32 reg, u32 expected, int ms,
1617/* CMNG constants, as derived from system spec calculations */ 1617/* CMNG constants, as derived from system spec calculations */
1618/* default MIN rate in case VNIC min rate is configured to zero - 100Mbps */ 1618/* default MIN rate in case VNIC min rate is configured to zero - 100Mbps */
1619#define DEF_MIN_RATE 100 1619#define DEF_MIN_RATE 100
1620/* resolution of the rate shaping timer - 100 usec */ 1620/* resolution of the rate shaping timer - 400 usec */
1621#define RS_PERIODIC_TIMEOUT_USEC 100 1621#define RS_PERIODIC_TIMEOUT_USEC 400
1622/* number of bytes in single QM arbitration cycle - 1622/* number of bytes in single QM arbitration cycle -
1623 * coefficient for calculating the fairness timer */ 1623 * coefficient for calculating the fairness timer */
1624#define QM_ARB_BYTES 160000 1624#define QM_ARB_BYTES 160000