summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.davemloft.net>2004-09-29 07:12:18 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-09-29 07:12:18 -0700
commitef89757332a409742428e83df2f193d21d2da0ce (patch)
tree10ede594d61796a5d77e2af7ea26245220e43b0c /include/net
parent28135721d143df04cc4b1a06999669d1a1378ee0 (diff)
[TCP]: Smooth out TSO ack clocking.
- Export tcp_trim_head() and call it directly from tcp_tso_acked(). This also fixes URG handling. - Make tcp_trim_head() adjust the skb->truesize of the packet and liberate that space from the socket send buffer. - In tcp_current_mss(), limit TSO factor to 1/4 of snd_cwnd. The idea is from John Heffner. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 68e15e26d7ed..dc8decf5ff55 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -944,6 +944,7 @@ extern int tcp_write_xmit(struct sock *, int nonagle);
extern int tcp_retransmit_skb(struct sock *, struct sk_buff *);
extern void tcp_xmit_retransmit_queue(struct sock *);
extern void tcp_simple_retransmit(struct sock *);
+extern int tcp_trim_head(struct sock *, struct sk_buff *, u32);
extern void tcp_send_probe0(struct sock *);
extern void tcp_send_partial(struct sock *);