net/dim: Support adaptive TX moderation
authorTal Gilboa <talgi@mellanox.com>
Tue, 24 Apr 2018 10:36:02 +0000 (13:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2018 14:15:07 +0000 (10:15 -0400)
commit623ad755226c2b4fb312772bae9cdeccd8219ee3
tree97dd77a728c61912b616b71caf25e60b92a4c787
parent026a807c2de37aa826748c2ffa1969fc778406b2
net/dim: Support adaptive TX moderation

Interrupt moderation for TX traffic requires different profiles than RX
interrupt moderation. The main goal here is to reduce interrupt rate and
allow better payload aggregation by keeping SKBs in the TX queue a bit
longer. Ping-pong behavior would get a profile with a short timer, so
latency wouldn't increase for these scenarios. There might be a slight
degradation in bandwidth for single stream with large message sizes, since
net.ipv4.tcp_limit_output_bytes is limiting the allowed TX traffic, but
with many streams performance is always improved.

Signed-off-by: Tal Gilboa <talgi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net_dim.h