OSDN Git Service

bpf: Refine memcg-based memory accounting for devmap maps
authorRoman Gushchin <guro@fb.com>
Tue, 1 Dec 2020 21:58:37 +0000 (13:58 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 02:32:45 +0000 (18:32 -0800)
commit1440290adf7bb27602bbb7d8b2dc3d903ed3c6c9
tree5efc256ec055e39011d59c054b016f07fedb7fdf
parent3a61c7c58b3012ac28c166801842615ca99b49c5
bpf: Refine memcg-based memory accounting for devmap maps

Include map metadata and the node size (struct bpf_dtab_netdev)
into the accounting.

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