mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
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>
This commit is contained in:
parent
72fa42cfca
commit
8dc8220e23
2 changed files with 774 additions and 774 deletions
File diff suppressed because it is too large
Load diff
|
@ -567,7 +567,7 @@ int tun_rss_steering_prog(struct __sk_buff *skb)
|
||||||
return config->default_queue;
|
return config->default_queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char _license[] SEC("license") = "GPL v2";
|
char _license[] SEC("license") = "GPL v2";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue