bpf_map_def.h - fix no longer correct comment am: fd59a4a0a6
Original change: https://android-review.googlesource.com/c/platform/system/bpf/+/1619222
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ifdef2d29e0d5ddebd5f7d1a68c4d2d8b64600239
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 @@
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.
};