ebpf: Return 0 when configuration fails
commit8dc8220e23a6d16415b6a0a46785224e8bc7edd1
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Sun, 28 Apr 2024 07:00:59 +0000 (28 16:00 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 4 Jun 2024 07:14:26 +0000 (4 15:14 +0800)
treef8e2477d7355ae6a4db3a6fcdfd5f28d21ff86ea
parent72fa42cfca7060fab00c534e71fc850b194a4c6d
ebpf: Return 0 when configuration fails

The kernel interprets the returned value as an unsigned 32-bit so -1
will mean queue 4294967295, which is awkward. Return 0 instead.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
ebpf/rss.bpf.skeleton.h
tools/ebpf/rss.bpf.c