tcp: introduce tcp_under_memory_pressure()
Introduce an optimized version of sk_under_memory_pressure() for TCP. Our intent is to use it in fast paths. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a6c5ea4ccf
commit
b8da51ebb1
4 changed files with 15 additions and 7 deletions
|
|
@ -247,7 +247,7 @@ void tcp_delack_timer_handler(struct sock *sk)
|
|||
}
|
||||
|
||||
out:
|
||||
if (sk_under_memory_pressure(sk))
|
||||
if (tcp_under_memory_pressure(sk))
|
||||
sk_mem_reclaim(sk);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue