aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2010-02-15 14:42:09 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-16 18:19:03 -0500
commit5726026bfffa13e9b1098d7bc177618cbbaa9388 (patch)
treeecb18de894b79ef7d6c1dff118ae98196e37ba9e /drivers/net/bnx2.c
parente9f26c49ce790de0064474f97d6402ce1fefac2a (diff)
bnx2: Adjust flow control water marks.
The current water marks are too high and can cause unnecessary flow control frames. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 063f28394e3d..dbe487f2915d 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -1277,7 +1277,7 @@ bnx2_init_rx_context(struct bnx2 *bp, u32 cid)
1277 if (lo_water >= bp->rx_ring_size) 1277 if (lo_water >= bp->rx_ring_size)
1278 lo_water = 0; 1278 lo_water = 0;
1279 1279
1280 hi_water = bp->rx_ring_size / 4; 1280 hi_water = min_t(int, bp->rx_ring_size / 4, lo_water + 16);
1281 1281
1282 if (hi_water <= lo_water) 1282 if (hi_water <= lo_water)
1283 lo_water = 0; 1283 lo_water = 0;