summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2005-09-01 17:48:23 -0700
committerDavid S. Miller <davem@davemloft.net>2005-09-01 17:48:23 -0700
commitd80d99d643090c3cf2b1f9fb3fadd1256f7e384f (patch)
tree5e8bd46fa6c73cace5efb77c43e863cd36edb0c9 /net
parent2dac4b96b9362954a0638317b90e3e7bcb112e83 (diff)
downloadblackbird-op-linux-d80d99d643090c3cf2b1f9fb3fadd1256f7e384f.tar.gz
blackbird-op-linux-d80d99d643090c3cf2b1f9fb3fadd1256f7e384f.zip
[NET]: Add sk_stream_wmem_schedule
This patch introduces sk_stream_wmem_schedule as a short-hand for the sk_forward_alloc checking on egress. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/tcp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 02fdda68718d..854f6d0c4bb3 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -552,8 +552,7 @@ new_segment:
tcp_mark_push(tp, skb);
goto new_segment;
}
- if (sk->sk_forward_alloc < copy &&
- !sk_stream_mem_schedule(sk, copy, 0))
+ if (!sk_stream_wmem_schedule(sk, copy))
goto wait_for_memory;
if (can_coalesce) {
OpenPOWER on IntegriCloud