summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-03-02 18:37:33 -0800
committerMaciej Żenczykowski <maze@google.com>2021-03-04 15:47:40 +0000
commitfd59a4a0a624f4e3161742b25818c30deef30d4f (patch)
tree1898d49b6451353ddaf3d8e0f6772de430fcb3a9 /progs
parent265d1310ec5d246ec8af85be23414cecbe838e60 (diff)
downloadbpf-fd59a4a0a624f4e3161742b25818c30deef30d4f.tar.gz
bpf_map_def.h - fix no longer correct comment
This is due to changing how many bits are assigned to individual fragments, which was done to support kernel version 4.9.256. Test: atest, TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I7f556352beab009cd114e2241f3d7fe6d878a458
Diffstat (limited to 'progs')
-rw-r--r--progs/include/bpf_map_def.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/progs/include/bpf_map_def.h b/progs/include/bpf_map_def.h
index 8523c36..50a822c 100644
--- a/progs/include/bpf_map_def.h
+++ b/progs/include/bpf_map_def.h
@@ -57,8 +57,9 @@ struct bpf_prog_def {
unsigned int uid;
unsigned int gid;
- unsigned int min_kver; // KERNEL_MAJOR * 65536 + KERNEL_MINOR * 256 + KERNEL_SUB
- unsigned int max_kver; // ie. 0x40900 for Linux 4.9 - but beware of hexadecimal for >= 10
+ // kernelVersion() must be >= min_kver and < max_kver
+ unsigned int min_kver;
+ unsigned int max_kver;
- bool optional; // program section (ie. function) may fail to load, continue onto next func.
+ bool optional; // program section (ie. function) may fail to load, continue onto next func.
};