diff options
| author | Yafang Shao <[email protected]> | 2023-03-05 12:46:13 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-03-07 17:33:43 +0000 |
| commit | b4fd0d672bca001632d7291b5b162b08e065b815 (patch) | |
| tree | aae302ce6e01d5c2d8caf9847f7da0b5ebd62ea6 /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
| parent | bpf, net: sock_map memory usage (diff) | |
| download | kernel-b4fd0d672bca001632d7291b5b162b08e065b815.tar.gz kernel-b4fd0d672bca001632d7291b5b162b08e065b815.zip | |
bpf, net: xskmap memory usage
A new helper is introduced to calculate xskmap memory usage.
The xfsmap memory usage can be dynamically changed when we add or remove
a xsk_map_node. Hence we need to track the count of xsk_map_node to get
its memory usage.
The result as follows,
- before
10: xskmap name count_map flags 0x0
key 4B value 4B max_entries 65536 memlock 524288B
- after
10: xskmap name count_map flags 0x0 <<< no elements case
key 4B value 4B max_entries 65536 memlock 524608B
Signed-off-by: Yafang Shao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions
