diff options
| author | Jakub Bogusz <[email protected]> | 2020-07-09 22:57:23 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-07-10 02:38:55 +0000 |
| commit | b2f9f1535bb93ee5fa2ea30ac1c26fa0d676154c (patch) | |
| tree | 2e875e49560069cea681049e70f0dc7ec38ca24c /drivers/usb/cdns3 | |
| parent | selftests: bpf: Fix detach from sockmap tests (diff) | |
| download | kernel-b2f9f1535bb93ee5fa2ea30ac1c26fa0d676154c.tar.gz kernel-b2f9f1535bb93ee5fa2ea30ac1c26fa0d676154c.zip | |
libbpf: Fix libbpf hashmap on (I)LP32 architectures
On ILP32, 64-bit result was shifted by value calculated for 32-bit long type
and returned value was much outside hashmap capacity.
As advised by Andrii Nakryiko, this patch uses different hashing variant for
architectures with size_t shorter than long long.
Fixes: e3b924224028 ("libbpf: add resizable non-thread safe internal hashmap")
Signed-off-by: Jakub Bogusz <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3')
0 files changed, 0 insertions, 0 deletions
