Files
Roman Gushchin 8f1c9f19c5 bpf: introduce per-cpu cgroup local storage
This commit introduced per-cpu cgroup local storage.

Per-cpu cgroup local storage is very similar to simple cgroup storage
(let's call it shared), except all the data is per-cpu.

The main goal of per-cpu variant is to implement super fast
counters (e.g. packet counters), which don't require neither
lookups, neither atomic operations.

>From userspace's point of view, accessing a per-cpu cgroup storage
is similar to other per-cpu map types (e.g. per-cpu hashmaps and
arrays).

Writing to a per-cpu cgroup storage is not atomic, but is performed
by copying longs, so some minimal atomicity is here, exactly
as with other per-cpu maps.

Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2025-12-21 17:55:55 +01:00
..
2020-08-21 11:01:49 +02:00
2017-05-26 15:05:08 +05:30
2016-10-03 18:52:14 +02:00
2018-03-22 09:17:38 +01:00
2025-12-21 17:51:39 +01:00
2016-11-03 12:43:03 -07:00
2018-05-08 21:42:04 +00:00
2018-03-22 16:11:53 -07:00
2016-09-27 21:52:00 -04:00
2016-09-27 21:52:00 -04:00
2018-04-20 08:21:04 +02:00
2019-09-03 13:44:48 -07:00
2016-09-01 16:17:11 -07:00
2017-03-29 16:54:34 -07:00
2018-02-21 15:40:42 +00:00
2016-08-02 16:53:54 +03:00