Libxdp function xdp_program__set_run_prio
Definition
This function allow to set a priority the program when loaded to the dispatcher. The priority of a program is an integer used to determine the order in which programs are executed on the interface.
Note
The higher the value, the later the program will run. The lower the value, the earlier the program will run.
Note
The default priority value is 50 if not specified.
Warning
This only work before the load of the program to the dispatcher.
Returns
0 on success, or a negative error in case of failure:
-EINVAL if arguments are invalid
Usage
int xdp_program__set_run_prio(struct xdp_program *xdp_prog, unsigned int run_prio);
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome