summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2021-06-15 21:55:54 +0800
committerAndrii Nakryiko <andrii@kernel.org>2021-06-16 20:10:18 -0700
commitbf067f1c51239ba70be714c513820d2c4a5cd457 (patch)
tree248760b79ee26f2dd0877a36adba27cc96ba3041 /samples
parent712b78c697cd75b62b7707b5a20bcd914aedfdaa (diff)
downloadlinux-bf067f1c51239ba70be714c513820d2c4a5cd457.tar.bz2
samples/bpf: Add missing option to xdp_fwd usage
xdp_fwd usage() is missing the introduction of the "-S" and "-F" options, this patch adds it. Fixes: d50ecc46d18f ("samples/bpf: Attach XDP programs in driver mode by default") Signed-off-by: Wang Hai <wanghai38@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Jesper Dangaard Brouer <brouer@redhat.com> Link: https://lore.kernel.org/bpf/20210615135554.29158-1-wanghai38@huawei.com
Diffstat (limited to 'samples')
-rw-r--r--samples/bpf/xdp_fwd_user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/bpf/xdp_fwd_user.c b/samples/bpf/xdp_fwd_user.c
index 74a4583d0d86..00061261a8da 100644
--- a/samples/bpf/xdp_fwd_user.c
+++ b/samples/bpf/xdp_fwd_user.c
@@ -67,6 +67,8 @@ static void usage(const char *prog)
"usage: %s [OPTS] interface-list\n"
"\nOPTS:\n"
" -d detach program\n"
+ " -S use skb-mode\n"
+ " -F force loading prog\n"
" -D direct table lookups (skip fib rules)\n",
prog);
}