diff options
| author | Stanislav Fomichev <[email protected]> | 2021-07-27 22:23:35 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2021-07-27 22:59:29 +0000 |
| commit | 33b57e0cc78eb82f2921eb4c6d1c8fcaa733823b (patch) | |
| tree | 353b54e322ce3e6207a184d048df4e2b14c82f0e /net/unix/unix_bpf.c | |
| parent | libbpf: Fix race when pinning maps in parallel (diff) | |
| download | kernel-33b57e0cc78eb82f2921eb4c6d1c8fcaa733823b.tar.gz kernel-33b57e0cc78eb82f2921eb4c6d1c8fcaa733823b.zip | |
bpf: Increase supported cgroup storage value size
Current max cgroup storage value size is 4k (PAGE_SIZE). The other local
storages accept up to 64k (BPF_LOCAL_STORAGE_MAX_VALUE_SIZE). Let's align
max cgroup value size with the other storages.
For percpu, the max is 32k (PCPU_MIN_UNIT_SIZE) because percpu
allocator is not happy about larger values.
netcnt test is extended to exercise those maximum values
(non-percpu max size is close to, but not real max).
v4:
* remove inner union (Andrii Nakryiko)
* keep net_cnt on the stack (Andrii Nakryiko)
v3:
* refine SIZEOF_BPF_LOCAL_STORAGE_ELEM comment (Yonghong Song)
* anonymous struct in percpu_net_cnt & net_cnt (Yonghong Song)
* reorder free (Yonghong Song)
v2:
* cap max_value_size instead of BUILD_BUG_ON (Martin KaFai Lau)
Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
