Skip to content

Libxdp function xdp_multiprog__get_from_ifindex

Definition

This allow to get the xdp_multiprog, the dispatcher program, from the index of an interface.

Returns

0 on success, or a negative error in case of failure:

-EBUSY if the dispatcher can't be reach

-ENOENT if ifindex doesn't exist

Usage

struct xdp_multiprog *xdp_multiprog__get_from_ifindex(int ifindex);

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome