From: Eric Dumazet Date: Sun, 5 Oct 2014 17:11:27 +0000 (-0700) Subject: net: introduce netdevice gso_min_segs attribute X-Git-Tag: fixes-against-v3.18-rc2~144^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcbeb976d7ce783fd58e63e61c196d9a8912b3be;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed