diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2009-06-02 01:23:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-02 11:29:06 +0200 |
commit | 3db36fb2c88d68ee28d20845d5bb805ea9a7f6d8 (patch) | |
tree | 0ad3c9903e3dfd995a2ce14fa811aed1458c7ae0 /drivers/net/mlx4/en_ethtool.c | |
parent | mlx4_en: Work with part of the ports. (diff) | |
download | linux-3db36fb2c88d68ee28d20845d5bb805ea9a7f6d8.tar.xz 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_ethtool.c')
-rw-r--r-- | drivers/net/mlx4/en_ethtool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/mlx4/en_ethtool.c b/drivers/net/mlx4/en_ethtool.c index 91d81169e04e..091f99052c91 100644 --- a/drivers/net/mlx4/en_ethtool.c +++ b/drivers/net/mlx4/en_ethtool.c @@ -268,8 +268,7 @@ static int mlx4_en_set_coalesce(struct net_device *dev, priv->rx_frames = (coal->rx_max_coalesced_frames == MLX4_EN_AUTO_CONF) ? - MLX4_EN_RX_COAL_TARGET / - priv->dev->mtu + 1 : + MLX4_EN_RX_COAL_TARGET : coal->rx_max_coalesced_frames; priv->rx_usecs = (coal->rx_coalesce_usecs == MLX4_EN_AUTO_CONF) ? |