diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-04-28 16:00:59 +0900 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2024-06-04 15:14:26 +0800 |
commit | 8dc8220e23a6d16415b6a0a46785224e8bc7edd1 (patch) | |
tree | f8e2477d7355ae6a4db3a6fcdfd5f28d21ff86ea /tools | |
parent | 72fa42cfca7060fab00c534e71fc850b194a4c6d (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ebpf/rss.bpf.c b/tools/ebpf/rss.bpf.c index fa55e1fcb5..77434435ac 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"; |