diff options
| author | Andrew Melnychenko <andrew@daynix.com> | 2024-02-05 18:54:31 +0200 |
|---|---|---|
| committer | Jason Wang <jasowang@redhat.com> | 2024-03-12 19:31:46 +0800 |
| commit | 333b3e5fab751cce9f077b827563296c797ff399 (patch) | |
| tree | b42d08780966ade3a28f80b7e468cc52e38e92b3 /ebpf/ebpf_rss.h | |
| parent | 6a5287ce80470bb8df95901d73ee779a64e70c3a (diff) | |
| download | focaccia-qemu-333b3e5fab751cce9f077b827563296c797ff399.tar.gz focaccia-qemu-333b3e5fab751cce9f077b827563296c797ff399.zip | |
ebpf: Added eBPF map update through mmap.
Changed eBPF map updates through mmaped array. Mmaped arrays provide direct access to map data. It should omit using bpf_map_update_elem() call, which may require capabilities that are not present. Signed-off-by: Andrew Melnychenko <andrew@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'ebpf/ebpf_rss.h')
| -rw-r--r-- | ebpf/ebpf_rss.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ebpf/ebpf_rss.h b/ebpf/ebpf_rss.h index bf3f2572c7..ab08a7266d 100644 --- a/ebpf/ebpf_rss.h +++ b/ebpf/ebpf_rss.h @@ -20,6 +20,11 @@ struct EBPFRSSContext { int map_configuration; int map_toeplitz_key; int map_indirections_table; + + /* mapped eBPF maps for direct access to omit bpf_map_update_elem() */ + void *mmap_configuration; + void *mmap_toeplitz_key; + void *mmap_indirections_table; }; struct EBPFRSSConfig { |