[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>
This commit is contained in:
committed by
David S. Miller
parent
2dac4b96b9
commit
d80d99d643
@@ -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) {
|
||||
|
Reference in New Issue
Block a user