mlx4_en: Adaptive moderation policy change
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Fri, 7 Aug 2009 02:27:28 +0000 (19:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2009 02:27:28 +0000 (19:27 -0700)
commita35ee541a66d11d26da30d3f6046dbddd073334e
tree35f39f572d30b6c3edcd2b3f064e60f7ab659c69
parent6cb87823627699b0267234a210d8199b681c70e3
mlx4_en: Adaptive moderation policy change

If the net device is identified as "sender" (number of sent packets
is higher then the number of received packets and the incoming packets are
small), set the moderation time to its low limit.
We do it because the incoming packets are acks, and we don't want to delay them

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_netdev.c