diff options
author | Linus Torvalds <[email protected]> | 2007-10-08 12:59:10 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2007-10-08 12:59:10 -0700 |
commit | e46dc1dab969550d4136e9be0e7919ca09e49573 (patch) | |
tree | 86dbc21796b402c895fd96d5197bf38d8d060545 /net/ipv4/tcp_input.c | |
parent | 87e2831c3fa39cbf6f7ab676bb5aef039b9659e2 (diff) | |
parent | bf0b48dfc368c07c42b5a3a5658c8ee81b4283ac (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
[IPv6]: Fix ICMPv6 redirect handling with target multicast address
[PKT_SCHED] cls_u32: error code isn't been propogated properly
[ROSE]: Fix rose.ko oops on unload
[TCP]: Fix fastpath_cnt_hint when GSO skb is partially ACKed
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index bbad2cdb74b7..f893e90061eb 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -2420,6 +2420,9 @@ static int tcp_tso_acked(struct sock *sk, struct sk_buff *skb, __u32 dval = min(tp->fackets_out, packets_acked); tp->fackets_out -= dval; } + /* hint's skb might be NULL but we don't need to care */ + tp->fastpath_cnt_hint -= min_t(u32, packets_acked, + tp->fastpath_cnt_hint); tp->packets_out -= packets_acked; BUG_ON(tcp_skb_pcount(skb) == 0); |