-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A couple of small refactorings of BPF program call sites #3634
Conversation
Master branch: 274052a |
Master branch: 2786bcf |
716bc1a
to
5b7b0c0
Compare
Master branch: 1e660f7 |
5b7b0c0
to
c6aac9a
Compare
Master branch: 028a964 |
c6aac9a
to
8107100
Compare
Master branch: 53e80a3 |
8107100
to
337f853
Compare
Master branch: 9fad7fe |
337f853
to
556469e
Compare
Master branch: cc48755 |
556469e
to
5d77d96
Compare
Master branch: b239da3 |
5d77d96
to
dda7c56
Compare
Master branch: 665f5d3 |
dda7c56
to
98a610f
Compare
Master branch: 2fae677 |
98a610f
to
b875c75
Compare
Master branch: cf7de6a |
b875c75
to
afd80ff
Compare
Master branch: 57c92f1 |
afd80ff
to
b9d805b
Compare
Master branch: b8c62fe |
b9d805b
to
8cb6cf3
Compare
Master branch: f7c946f |
8cb6cf3
to
31c431a
Compare
Master branch: 1bfe26f |
31c431a
to
f65afb9
Compare
Master branch: 47e34cb |
f65afb9
to
bde89a7
Compare
Master branch: a02c118 |
bde89a7
to
24c37c5
Compare
Move the received_rps counter value next to the other RPS-related members in softnet_data. This closes two four-byte holes in the structure, making room for another pointer in the first two cache lines without bumping the xmit struct to its own line. Reviewed-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Acked-by: Song Liu <song@kernel.org>
For queueing packets in XDP we want to add a new redirect map type with support for 64-bit indexes. To prepare fore this, expand the width of the 'key' argument to the bpf_redirect_map() helper. Since BPF registers are always 64-bit, this should be safe to do after the fact. Reviewed-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Acked-by: Song Liu <song@kernel.org>
BPF ABI always uses 64-bit return value, but so far __bpf_prog_run and higher level wrappers always truncated the return value to 32-bit. We want to be able to introduce a new BPF program type that returns a PTR_TO_BTF_ID or NULL from the BPF program to the caller context in the kernel. To be able to use this returned pointer value, the bpf_prog_run invocation needs to be able to return a 64-bit value, so update the definitions to allow this. To avoid code churn in the whole kernel, we let the compiler handle truncation normally, and allow new call sites to utilize the 64-bit return value, by receiving the return value as a u64. Reviewed-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Acked-by: Song Liu <song@kernel.org>
Master branch: bfeb7e3 |
24c37c5
to
a5a5870
Compare
Master branch: ceea991 Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/netdevbpf/list/?series=674232
conflict:
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=674232 expired. Closing PR. |
Pull request for series with
subject: A couple of small refactorings of BPF program call sites
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=674232