24.3. XDP Command Line Tools

XDP command line tools can be used to manage and show options of the xdp offloader feature.

24.3.1. xdp_vair_user

Tool to attach the XDP programm and set the blacklist.

Usage: xdp_vtair_user [options]

DOCUMENTATION:
 XDP flowoffload
- Allows selecting BPF section --progsec name to XDP-attach to --dev

Required options:
-d, --dev <ifname>         Operate on device <ifname>

Other options:
-h, --help                 Show help
-F, --force                Force install, replacing existing program on interface
-U, --unload               Unload XDP program instead of loading
-M, --reload-maps          Recreate pinned maps
-B, --blacklist            Reload Blacklist
-b, --blacklistread        Read and output Blacklist
-O, --option               Option Setting mode required for enable or disable
-E, --enable               Enable XDP Forward mode on loaded XDP program
-D, --disable              Disable XDP Forward mode on loaded XDP program
    --filename <file>      Load program from <file>
    --progsec <section>    Load program in <section> of the ELF file

24.3.2. xdp_stats

Tool to read out stats of XDP.

Usage: xdp_stats [options]

DOCUMENTATION:
 XDP stats program
- Finding xdp_stats_map via --dev name info

Required options:
-d, --dev <ifname>         Operate on device <ifname>

Other options:
-h, --help                 Show help
-b, --blacklist            Blacklist
-C, --clear                Clear all values in xdp_stats_map or blacklist