Commit dfdda1a0 authored by Wang Hai's avatar Wang Hai Committed by Andrii Nakryiko

samples/bpf: Add missing option to xdp_sample_pkts usage

xdp_sample_pkts usage() is missing the introduction of the
"-S" option, this patch adds it.

Fixes: d50ecc46 ("samples/bpf: Attach XDP programs in driver mode by default")
Signed-off-by: default avatarWang Hai <wanghai38@huawei.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Acked-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/20210615135724.29528-1-wanghai38@huawei.com
parent bf067f1c
...@@ -103,7 +103,8 @@ static void usage(const char *prog) ...@@ -103,7 +103,8 @@ static void usage(const char *prog)
fprintf(stderr, fprintf(stderr,
"%s: %s [OPTS] <ifname|ifindex>\n\n" "%s: %s [OPTS] <ifname|ifindex>\n\n"
"OPTS:\n" "OPTS:\n"
" -F force loading prog\n", " -F force loading prog\n"
" -S use skb-mode\n",
__func__, prog); __func__, prog);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment