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
This commit is contained in:
parent
265d1310ec
commit
fd59a4a0a6
1 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue