diff options
author | Dave Thaler <dthaler@microsoft.com> | 2023-05-09 18:08:45 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-05-17 16:18:33 +0200 |
commit | 8819495a754e71d3c3fde991c26ad832af995136 (patch) | |
tree | b27c2ab926bb0ed71515b80b25a3c85f363175a3 /tools/testing/selftests/bpf/bpf_kfuncs.h | |
parent | 2a36c26fe3b8e2cf39e15e80ba1abc889a75da4f (diff) | |
download | linux-8819495a754e71d3c3fde991c26ad832af995136.tar.gz linux-8819495a754e71d3c3fde991c26ad832af995136.tar.bz2 linux-8819495a754e71d3c3fde991c26ad832af995136.zip |
bpf, docs: Shift operations are defined to use a mask
Update the documentation regarding shift operations to explain the
use of a mask, since otherwise shifting by a value out of range
(like negative) is undefined.
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20230509180845.1236-1-dthaler1968@googlemail.com
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_kfuncs.h')
0 files changed, 0 insertions, 0 deletions