Skip to content

Commit

Permalink
samples/bpf: Add missing option to xdp_sample_pkts usage
Browse files Browse the repository at this point in the history
xdp_sample_pkts usage() is missing the introduction of the
"-S" option, this patch adds it.

Fixes: d50ecc4 ("samples/bpf: Attach XDP programs in driver mode by default")
Signed-off-by: Wang Hai <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
  • Loading branch information
Wang Hai authored and anakryiko committed Jun 17, 2021
1 parent bf067f1 commit dfdda1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/bpf/xdp_sample_pkts_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit dfdda1a

Please sign in to comment.