]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Refine memcg-based memory accounting for sockmap and sockhash maps
authorRoman Gushchin <guro@fb.com>
Tue, 1 Dec 2020 21:58:42 +0000 (13:58 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 02:32:46 +0000 (18:32 -0800)
commitf80ddeba29f37608590eb7bd63217ac6c6177f3f
tree773a44945d1e25b9cae0415d924d644a1516c95b
parent9bc7c292063096e3054e1df3ead596eb32c4e9c0
bpf: Refine memcg-based memory accounting for sockmap and sockhash maps

Include internal metadata into the memcg-based memory accounting.
Also include the memory allocated on updating an element.

Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201201215900.3569844-17-guro@fb.com
net/core/sock_map.c