summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2021-06-15 16:57:24 +0300
committerAndrii Nakryiko <andrii@kernel.org>2021-06-17 06:11:24 +0300
commitdfdda1a0f4aad476ae25f2840c9426da3b99506d (patch)
tree9800ab4e4c20403ac73dadecd6396be7a1d45f8a
parentbf067f1c51239ba70be714c513820d2c4a5cd457 (diff)
downloadlinux-dfdda1a0f4aad476ae25f2840c9426da3b99506d.tar.xz
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: 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/20210615135724.29528-1-wanghai38@huawei.com
-rw-r--r--samples/bpf/xdp_sample_pkts_user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/bpf/xdp_sample_pkts_user.c b/samples/bpf/xdp_sample_pkts_user.c
index 706475e004cb..495e09897bd3 100644
--- a/samples/bpf/xdp_sample_pkts_user.c
+++ b/samples/bpf/xdp_sample_pkts_user.c
@@ -103,7 +103,8 @@ static void usage(const char *prog)
fprintf(stderr,
"%s: %s [OPTS] <ifname|ifindex>\n\n"
"OPTS:\n"
- " -F force loading prog\n",
+ " -F force loading prog\n"
+ " -S use skb-mode\n",
__func__, prog);
}