]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87f32b8687844b1dfc46236ece3db9976747c9f6
tree97dd77a728c61912b616b71caf25e60b92a4c787
parentcd54d0971b729c2a8da666b4063cfc2a42979a15
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