Dynamically adding entries to an eBPF map of maps
I want to create an eBPF hash of maps and add entries to this map gradually. Since BPF programs cannot add new entires to outer maps, my only option is to do that in the userspace program. And I found out a way to do that by defining a outer map and the expected inner map in the BPF program:
How eBPF stack works
I am currently creating a XDP program where I have a bunch of function calls and, as such, the stack gets fuller as the program is executed.
However, I am confused as to how the stack size is measured. For example, lets say that I call the following function:
How to bpf_prog_test_run_opts to a program that extends xdp_dispatcher
This is somewhat a follow-up question from another post.
where is the entry point in kernel for an eBPF msg_verdict program?
From the git log of linux at 174a7, I know the verdict flow is given as below