]> git.baikalelectronics.ru Git - kernel.git/commit
net: introduce netdevice gso_min_segs attribute
authorEric Dumazet <edumazet@google.com>
Sun, 5 Oct 2014 17:11:27 +0000 (10:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 21:56:28 +0000 (17:56 -0400)
commit1681b70eb437b4807640310fe72617e7e5e47f82
treec6dde6923e5316b2bfc4bdb04bd6643515cc1598
parent45b5e318ebf94a05bcc9cf7cf1e9f6fc7e4170eb
net: introduce netdevice gso_min_segs attribute

Some TSO engines might have a too heavy setup cost, that impacts
performance on hosts sending small bursts (2 MSS per packet).

This patch adds a device gso_min_segs, allowing drivers to set
a minimum segment size for TSO packets, according to the NIC
performance.

Tested on a mlx4 NIC, this allows to get a ~110% increase of
throughput when sending 2 MSS per packet.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c