aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2024-04-28 16:00:59 +0900
committerJason Wang <jasowang@redhat.com>2024-06-04 15:14:26 +0800
commit8dc8220e23a6d16415b6a0a46785224e8bc7edd1 (patch)
treef8e2477d7355ae6a4db3a6fcdfd5f28d21ff86ea /tools
parent72fa42cfca7060fab00c534e71fc850b194a4c6d (diff)
downloadqemu-8dc8220e23a6d16415b6a0a46785224e8bc7edd1.zip
qemu-8dc8220e23a6d16415b6a0a46785224e8bc7edd1.tar.gz
qemu-8dc8220e23a6d16415b6a0a46785224e8bc7edd1.tar.bz2
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/ebpf/rss.bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ebpf/rss.bpf.c b/tools/ebpf/rss.bpf.c
index fa55e1f..7743443 100644
--- a/tools/ebpf/rss.bpf.c
+++ b/tools/ebpf/rss.bpf.c
@@ -567,7 +567,7 @@ int tun_rss_steering_prog(struct __sk_buff *skb)
return config->default_queue;
}
- return -1;
+ return 0;
}
char _license[] SEC("license") = "GPL v2";