Skip to content

Conversation

@kernel-patches-daemon-bpf-rc
Copy link

Pull request for series with
subject: bpf: Improve the general precision of tnum_mul
version: 6
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=995473

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 4223bf8
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=995473
version: 6

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: f4c227c
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=995473
version: 6

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: f4c227c
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=995473
version: 6

@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: d0f27ff
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=995473
version: 6

Drop the value-mask decomposition technique and adopt straightforward
long-multiplication with a twist: when LSB(a) is uncertain, find the
two partial products (for LSB(a) = known 0 and LSB(a) = known 1) and
take a union.

Experiment shows that applying this technique in long multiplication
improves the precision in a significant number of cases (at the cost
of losing precision in a relatively lower number of cases).

Signed-off-by: Nandakumar Edamana <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Reviewed-by: Harishankar Vishwanathan <[email protected]>
Tested-by: Harishankar Vishwanathan <[email protected]> # Agni
Add new selftest to test the abstract multiplication technique(s) used
by the verifier, following the recent improvement in tnum
multiplication (tnum_mul). One of the newly added programs,
verifier_mul/mul_precise, results in a false positive with the old
tnum_mul, while the program passes with the latest one.

Signed-off-by: Nandakumar Edamana <[email protected]>
Acked-by: Eduard Zingerman <[email protected]>
Reviewed-by: Harishankar Vishwanathan <[email protected]>
@kernel-patches-daemon-bpf-rc
Copy link
Author

Upstream branch: 2465bb8
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=995473
version: 6

@kernel-patches-daemon-bpf-rc
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=995473 irrelevant now. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants