Relative Content

Tag Archive for ebpfbpfxdp-bpf

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: