summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2014-10-05 21:11:27 +0400
committerDavid S. Miller <davem@davemloft.net>2014-10-07 01:56:28 +0400
commitfcbeb976d7ce783fd58e63e61c196d9a8912b3be (patch)
treec6dde6923e5316b2bfc4bdb04bd6643515cc1598 /include/net
parent9d31a7b9f9963e97e067e72ef13492e6ace7d345 (diff)
downloadlinux-fcbeb976d7ce783fd58e63e61c196d9a8912b3be.tar.xz
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>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions