Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

samples/bpf: Add missing option to xdpsock usage

Commit 743e568c1586 (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: 743e568c1586 (samples/bpf: Add a "force" flag to XDP samples)
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191114162847.221770-2-andre.guedes@intel.com

authored by

Andre Guedes and committed by
Daniel Borkmann
b3133329 110b2263

+2
+2
samples/bpf/xdpsock_user.c
··· 374 374 {"no-need-wakeup", no_argument, 0, 'm'}, 375 375 {"unaligned", no_argument, 0, 'u'}, 376 376 {"shared-umem", no_argument, 0, 'M'}, 377 + {"force", no_argument, 0, 'F'}, 377 378 {0, 0, 0, 0} 378 379 }; 379 380 ··· 398 397 " -f, --frame-size=n Set the frame size (must be a power of two in aligned mode, default is %d).\n" 399 398 " -u, --unaligned Enable unaligned chunk placement\n" 400 399 " -M, --shared-umem Enable XDP_SHARED_UMEM\n" 400 + " -F, --force Force loading the XDP prog\n" 401 401 "\n"; 402 402 fprintf(stderr, str, prog, XSK_UMEM__DEFAULT_FRAME_SIZE); 403 403 exit(EXIT_FAILURE);