projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
712b78c
)
samples/bpf: Add missing option to xdp_fwd usage
author
Wang Hai
<wanghai38@huawei.com>
Tue, 15 Jun 2021 13:55:54 +0000
(21:55 +0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Thu, 17 Jun 2021 03:10:18 +0000
(20:10 -0700)
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
samples/bpf/xdp_fwd_user.c
patch
|
blob
|
blame
|
history
diff --git
a/samples/bpf/xdp_fwd_user.c
b/samples/bpf/xdp_fwd_user.c
index 74a4583d0d866435dd85979ed2893fc2576abd9e..00061261a8da6fce78554ebe9ce0731a0610c718 100644
(file)
--- 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);
}