diff options
| author | Tiezhu Yang <[email protected]> | 2022-08-29 03:05:09 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-08-29 13:38:14 +0000 |
| commit | bbcf0f55e57841e532ab395596db9197e8d53e8d (patch) | |
| tree | 064f8ae5f1073140956797ba0d93b8a0ed9843ed /tools/lib/bpf/bpf_helpers.h | |
| parent | bpf: Fix a few typos in BPF helpers documentation (diff) | |
| download | kernel-bbcf0f55e57841e532ab395596db9197e8d53e8d.tar.gz kernel-bbcf0f55e57841e532ab395596db9197e8d53e8d.zip | |
bpf, mips: No need to use min() to get MAX_TAIL_CALL_CNT
MAX_TAIL_CALL_CNT is 33, so min(MAX_TAIL_CALL_CNT, 0xffff) is always
MAX_TAIL_CALL_CNT, it is better to use MAX_TAIL_CALL_CNT directly.
At the same time, add BUILD_BUG_ON(MAX_TAIL_CALL_CNT > 0xffff) with a
comment on why the assertion is there.
Suggested-by: Daniel Borkmann <[email protected]>
Suggested-by: Johan Almbladh <[email protected]>
Signed-off-by: Tiezhu Yang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
