From: Maryam Tahhan <mtahhan@xxxxxxxxxx> Add documentation for BPF_MAP_TYPE_CPUMAP including kernel version introduced, usage and examples. Signed-off-by: Maryam Tahhan <mtahhan@xxxxxxxxxx> Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> Co-developed-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> v3: - Updated introduction to use cpumap definition from kernel/bpf/cpumap.c - Separated examples and APIs under Kernel and Userspace headings. - Updated Userspace function signatures. - Fixed typos. - Migrated the use of u32 types to __u32. v2: - Removed TMI. - Updated example to use a round robin scheme. Maryam Tahhan (1): docs: BPF_MAP_TYPE_CPUMAP Documentation/bpf/map_cpumap.rst | 166 +++++++++++++++++++++++++++++++ kernel/bpf/cpumap.c | 9 +- 2 files changed, 172 insertions(+), 3 deletions(-) create mode 100644 Documentation/bpf/map_cpumap.rst -- 2.35.3