xdp-project / xdp-tutorial

XDP tutorial
2.44k stars 577 forks source link

How to custom bpf map max_entries on userspace and use the map on bpf program ? #251

Closed hi-glenn closed 2 years ago

tohojo commented 2 years ago

libbpf has a bpf_map__set_max_entries() that you can call after opening but before loading the BPF object...