Skip to content

Commit b313332

Browse files
Andre Guedesborkmann
authored andcommitted
samples/bpf: Add missing option to xdpsock usage
Commit 743e568 (samples/bpf: Add a "force" flag to XDP samples) introduced the '-F' option but missed adding it to the usage() and the 'long_option' array. Fixes: 743e568 (samples/bpf: Add a "force" flag to XDP samples) Signed-off-by: Andre Guedes <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 110b226 commit b313332

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/bpf/xdpsock_user.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ static struct option long_options[] = {
374374
{"no-need-wakeup", no_argument, 0, 'm'},
375375
{"unaligned", no_argument, 0, 'u'},
376376
{"shared-umem", no_argument, 0, 'M'},
377+
{"force", no_argument, 0, 'F'},
377378
{0, 0, 0, 0}
378379
};
379380

@@ -397,6 +398,7 @@ static void usage(const char *prog)
397398
" -f, --frame-size=n Set the frame size (must be a power of two in aligned mode, default is %d).\n"
398399
" -u, --unaligned Enable unaligned chunk placement\n"
399400
" -M, --shared-umem Enable XDP_SHARED_UMEM\n"
401+
" -F, --force Force loading the XDP prog\n"
400402
"\n";
401403
fprintf(stderr, str, prog, XSK_UMEM__DEFAULT_FRAME_SIZE);
402404
exit(EXIT_FAILURE);

0 commit comments

Comments
 (0)