commit | d2459f373ce41ab0e65483ab42da0e354298b0cd | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Mon Jan 20 14:38:02 2025 -0800 |
committer | Maciej Żenczykowski <maze@google.com> | Mon Jan 20 14:49:44 2025 -0800 |
tree | 8787aa62917a43e6f09df6b549545da427a60f7f | |
parent | 4c0ba60c3690877d8a96734e6dcededf513353f9 [diff] |
bpf: support BPF_F_NO_PREALLOC in bpf_map_def.h Kernel requires maps of type BPF_MAP_TYPE_LPM_TRIE to not be preallocated, so default enable the flag for these. But even for non LPM_TRIE maps allow a negative num_entries value to ask for 'non preallocated' maps. Test: TreeHugger Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I48d5d5813628c87094c5efa7266b0354b135dd7e