Skip to content

Commit

Permalink
xdp-forward: Rebuild man page
Browse files Browse the repository at this point in the history
The man page was not rebuilt after the README file was last updated.

Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
  • Loading branch information
tohojo committed Aug 5, 2024
1 parent 8a19b4f commit 67a90c7
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion xdp-forward/xdp-forward.8
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,31 @@ Enable debug logging. Specify twice for even more verbosity.
Display a summary of the available options

.SH "OPERATING MODES"
nil
.PP
The \fIxdp\-forward\fP utility supports the following operating modes (selected by
the \fI\-\-fwd\-mode\fP parameter to \fIxdp\-forward load\fP.

.SS "fib-full (default)"
.PP
In the \fIfib\-full\fP operating mode, \fIxdp\-forward\fP will perform a full lookup in
the kernel routing table (or FIB) for each packet, and forward packets between
the configured interfaces based on the result of the lookup. Any packet where
the lookup fails will be passed up to the stack. This includes packets that
require neighbour discovery for the next hop, meaning that packets will
periodically pass up the kernel stack for next hop discovery (initially, and
when the nexthop entry expires).

.PP
Note that no checks other than the FIB lookup is performed; in particular, this
completely bypasses the netfilter subsystem, so firewall rules will not be
checked before forwarding.

.SS "fib-direct"
.PP
The \fIfib\-direct\fP mode functions like \fIfib\-full\fP, except it passes the
\fIBPF_FIB_LOOKUP_DIRECT\fP flag to the FIB lookup routine. This means that any
policy routing rules configured will be skipped during the lookup, which can
improve performance (but won't obey the policy of those rules, obviously).

.SH "SEE ALSO"
.PP
Expand Down

0 comments on commit 67a90c7

Please sign in to comment.