Libxdp function xsk_setup_xdp_prog
Definition
This function sets up an XDP program on a specified network interface.
Returns
0 on success, or a negative error in case of failure:
-ENOENT if file not found
Usage
int xsk_setup_xdp_prog(int ifindex, int *xsks_map_fd);
Example
You can find an example at AF_XDP-example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome