]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
tcp: cache result of earlier divides when mss-aligning things
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 14 Mar 2009 22:45:16 +0000 (22:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2009 03:09:55 +0000 (20:09 -0700)
commit2a3a041c4e2c1685e668b280c121a5a40a029a03
treedab327c0cbebec79968c3c2207d064a9152857f0
parent0c54b85f2828128274f319a1eb3ce7f604fe2a53
tcp: cache result of earlier divides when mss-aligning things

The results is very unlikely change every so often so we
hardly need to divide again after doing that once for a
connection. Yet, if divide still becomes necessary we
detect that and do the right thing and again settle for
non-divide state. Takes the u16 space which was previously
taken by the plain xmit_size_goal.

This should take care part of the tso vs non-tso difference
we found earlier.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
net/ipv4/tcp.c