]> git.baikalelectronics.ru Git - kernel.git/commit
net: add per_cpu_fw_alloc field to struct proto
authorEric Dumazet <edumazet@google.com>
Thu, 9 Jun 2022 06:34:08 +0000 (23:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Jun 2022 23:21:26 +0000 (16:21 -0700)
commit808c05dfd3f588beaa5d4644d86c258ad4e38ee5
treeb25787bc499129fc43cba5c3e8af7e83c3880b42
parent12ce5a285f9a2ad3f8b57d446f32db13b25b4806
net: add per_cpu_fw_alloc field to struct proto

Each protocol having a ->memory_allocated pointer gets a corresponding
per-cpu reserve, that following patches will use.

Instead of having reserved bytes per socket,
we want to have per-cpu reserves.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 files changed:
include/net/sock.h
include/net/tcp.h
include/net/udp.h
net/core/sock.c
net/decnet/af_decnet.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv4/udplite.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/ipv6/udplite.c
net/mptcp/protocol.c
net/sctp/socket.c