bpf, samples: Add missing mprog-disable to xdp_redirect_cpu's optstring
authorMatthew Cover <werekraken@gmail.com>
Sat, 31 Jul 2021 00:56:32 +0000 (17:56 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 4 Aug 2021 22:41:13 +0000 (00:41 +0200)
Commit ce4dade7f12a ("samples/bpf: xdp_redirect_cpu: Load a eBPF program
on cpumap") added the following option, but missed adding it to optstring:

  - mprog-disable: disable loading XDP program on cpumap entries

Fix it and add the missing option character.

Fixes: ce4dade7f12a ("samples/bpf: xdp_redirect_cpu: Load a eBPF program on cpumap")
Signed-off-by: Matthew Cover <matthew.cover@stackpath.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210731005632.13228-1-matthew.cover@stackpath.com
samples/bpf/xdp_redirect_cpu_user.c

index d3ecdc18b9c1f931225072ec8976b504158aa9fb..9e225c96b77ecd55168690f8f313c87db1f15f4f 100644 (file)
@@ -841,7 +841,7 @@ int main(int argc, char **argv)
        memset(cpu, 0, n_cpus * sizeof(int));
 
        /* Parse commands line args */
-       while ((opt = getopt_long(argc, argv, "hSd:s:p:q:c:xzFf:e:r:m:",
+       while ((opt = getopt_long(argc, argv, "hSd:s:p:q:c:xzFf:e:r:m:n",
                                  long_options, &longindex)) != -1) {
                switch (opt) {
                case 'd':