xdp-project / bpf-examples

Making eBPF programming easier via build env and examples
424 stars 84 forks source link

AF_XDP example with reduce-cap #122

Closed Baruch-Fridman closed 1 month ago

Baruch-Fridman commented 1 month ago

Does this option work? Who creates the af_xdp socket? Where is the server sock_cal_bpf_fd from which the xsks_map_fd is requested? Is it possible that in this commit https://github.com/xdp-project/bpf-examples/commit/c425a168a1a592f0982118566614785051288b77 not everything was moved? Don't we also need for exsample samples/bpf/xdpsock_ctrl_proc.c file? @magnus-karlsson

magnus-karlsson commented 1 month ago

That is correct that it was not moved over from samples in the Linux source code repo to the bpf-examples repo. Thought it was of limited interest so did not move it over. But feel free to refer to the old program in samples as a guideline.