summaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/en_netdev.c
diff options
context:
space:
mode:
authorYevgeny Petrilin2009-06-02 01:23:13 +0200
committerDavid S. Miller2009-06-02 11:29:06 +0200
commit3db36fb2c88d68ee28d20845d5bb805ea9a7f6d8 (patch)
tree0ad3c9903e3dfd995a2ce14fa811aed1458c7ae0 /drivers/net/mlx4/en_netdev.c
parentmlx4_en: Work with part of the ports. (diff)
downloadkernel-qcow2-linux-3db36fb2c88d68ee28d20845d5bb805ea9a7f6d8.tar.gz
kernel-qcow2-linux-3db36fb2c88d68ee28d20845d5bb805ea9a7f6d8.tar.xz
kernel-qcow2-linux-3db36fb2c88d68ee28d20845d5bb805ea9a7f6d8.zip
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/en_netdev.c')
-rw-r--r--drivers/net/mlx4/en_netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c
index fea65e78d6de..16a634ffbcdf 100644
--- a/drivers/net/mlx4/en_netdev.c
+++ b/drivers/net/mlx4/en_netdev.c
@@ -372,7 +372,7 @@ static void mlx4_en_set_default_moderation(struct mlx4_en_priv *priv)
* satisfy our coelsing target.
* - moder_time is set to a fixed value.
*/
- priv->rx_frames = MLX4_EN_RX_COAL_TARGET / priv->dev->mtu + 1;
+ priv->rx_frames = MLX4_EN_RX_COAL_TARGET;
priv->rx_usecs = MLX4_EN_RX_COAL_TIME;
en_dbg(INTR, priv, "Default coalesing params for mtu:%d - "
"rx_frames:%d rx_usecs:%d\n",