mlx4: change TX coalescing defaults
authorEric Dumazet <edumazet@google.com>
Mon, 5 Nov 2012 16:20:42 +0000 (16:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Nov 2012 20:30:19 +0000 (15:30 -0500)
commitecfd2ce1a9d5e6376ff5c00b366345160abdbbb7
tree5637585d93c43b15a3c49022a0b0967c2d914653
parent6f0a0986e328dd61610d898a09c9f4aa960ae64a
mlx4: change TX coalescing defaults

mlx4 currently uses a too high tx coalescing setting, deferring
TX completion interrupts by up to 128 us.

With the recent skb_orphan() removal in commit 8112ec3b872,
performance of a single TCP flow is capped to ~4 Gbps, unless
we increase tcp_limit_output_bytes.

I suggest using 16 us instead of 128 us, allowing a finer control.

Performance of a single TCP flow is restored to previous levels,
while keeping TCP small queues fully enabled with default sysctl.

This patch is also a BQL prereq.

Reported-by: Vimalkumar <j.vimal@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yevgeny Petrilin <yevgenyp@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Acked-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h