Skip to content

Helper function xdp_multiprog__attach_mode

Definition

It give the xdp_attach_mode of the xdp_multiprog passed in parameter.

Returns

Return the enum xdp_attach_mode

In case of not found, It will return XDP_MODE_UNSPEC.

Usage

enum xdp_attach_mode xdp_multiprog__attach_mode(const struct xdp_multiprog *mp);

Example

Docs could be improved

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