net/mlx4_en: Fix adaptive moderation cq update
authorSagi Grimberg <sagig@mellanox.co.il>
Tue, 4 Jun 2013 05:13:26 +0000 (05:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2013 19:58:24 +0000 (12:58 -0700)
commita1c6693a50391683e7f5787bb027b1aae1afbedb
tree8200672a773085cc9c6bb957c33eec60479ff85d
parent01cb71d2d47b78354358e4bb938bb06323e17498
net/mlx4_en: Fix adaptive moderation cq update

When turning on adaptive_rx under adaptive moderation, the CQ's moderation
count wasn't updated according to rx_frames which resulted in too many
interrupts and bandwidth drop.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c