tcp: move tcp_out_of_memory() to net/ipv4/tcp.c
authorEric Dumazet <edumazet@google.com>
Mon, 29 Apr 2024 13:40:23 +0000 (13:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 May 2024 01:46:52 +0000 (18:46 -0700)
commitdda4d96acb20c02920f6d9a20fdc3f4846192aeb
tree3a6f55ab6c96593a9a625a9d466c88f592123bba
parentd480dc76d9f8a72671a6f9a7d987d2389c2e2ee4
tcp: move tcp_out_of_memory() to net/ipv4/tcp.c

tcp_out_of_memory() has a single caller: tcp_check_oom().

Following patch will also make sk_memory_allocated()
not anymore visible from <net/sock.h> and <net/tcp.h>

Add const qualifier to sock argument of tcp_out_of_memory()
and tcp_check_oom().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240429134025.1233626-4-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c