ebpf: Fix indirections table setting
commitba6bb2ec953f10751f174b6f7da8fe7e5f008c08
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Wed, 27 Mar 2024 02:05:10 +0000 (27 11:05 +0900)
committerJason Wang <jasowang@redhat.com>
Fri, 29 Mar 2024 06:59:00 +0000 (29 14:59 +0800)
treeb6699df3350257c950383f2c6bfff3b503dca19d
parent1c188fc8cbffc5f05cc616cab4e1372fb6e6f11f
ebpf: Fix indirections table setting

The kernel documentation says:
> The value stored can be of any size, however, all array elements are
> aligned to 8 bytes.
https://www.kernel.org/doc/html/v6.8/bpf/map_array.html

Fixes: 333b3e5fab75 ("ebpf: Added eBPF map update through mmap.")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Acked-by: Andrew Melnychenko <andrew@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
ebpf/ebpf_rss.c