BPF Statistics

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2023-07-31
Revision
1.2 English

Statistics identify the number of packets passed through the eBPF program, categorized by return code from the program.

# onload_stackdump lots | grep xdp
Table 1. Onload_stackdump XDP Counters
Counter Description
unlock_slow_xdp_change Number of attempts to release the lock and needed to handle change in XDP program
rx_xdp_pass Number of packets accepted by the eBPF program
rx_xdp_drop Number of packets rejected by the eBPF program
rx_xdp_tx Number of RX packets rejected due to eBPF program returning TX code
rx_xdp_redirect Number of RX packets rejected due to eBPF program returning REDIRECT code
rx_xdp_aborted Number of RX packets rejected due to eBPF program returning ABORTED code
rx_xdp_unknown Number of RX packets rejected due to eBPF program returning unknown code
Note: Onload has no current support for AF_XDP sockets. This might be included in future releases.