aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/mlx4_en.h
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2009-06-01 19:23:13 -0400
committerDavid S. Miller <davem@davemloft.net>2009-06-02 05:29:06 -0400
commit3db36fb2c88d68ee28d20845d5bb805ea9a7f6d8 (patch)
tree0ad3c9903e3dfd995a2ce14fa811aed1458c7ae0 /drivers/net/mlx4/mlx4_en.h
parent3c2fa83f9c2bbb3e91992a2fc443b7104a07e0bc (diff)
mlx4_en: Coalescing target is equal for all mtu's
The interrupt moderation should not depend on number of incoming bytes, but on number of incoming packets. The previous scheme caused very high interrupts rate for small messages when big MTU was configured. Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/mlx4_en.h')
-rw-r--r--drivers/net/mlx4/mlx4_en.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/mlx4_en.h b/drivers/net/mlx4/mlx4_en.h
index 174ae86e9523..fcbfcfc11568 100644
--- a/drivers/net/mlx4/mlx4_en.h
+++ b/drivers/net/mlx4/mlx4_en.h
@@ -143,8 +143,8 @@ enum {
143#define MLX4_EN_DEF_TX_RING_SIZE 1024 143#define MLX4_EN_DEF_TX_RING_SIZE 1024
144#define MLX4_EN_DEF_RX_RING_SIZE 1024 144#define MLX4_EN_DEF_RX_RING_SIZE 1024
145 145
146/* Target number of bytes to coalesce with interrupt moderation */ 146/* Target number of packets to coalesce with interrupt moderation */
147#define MLX4_EN_RX_COAL_TARGET 0x20000 147#define MLX4_EN_RX_COAL_TARGET 44
148#define MLX4_EN_RX_COAL_TIME 0x10 148#define MLX4_EN_RX_COAL_TIME 0x10
149 149
150#define MLX4_EN_TX_COAL_PKTS 5 150#define MLX4_EN_TX_COAL_PKTS 5