Skip to contentSkip to conversation

samples/bpf: Add missing option to xdp_sample_pkts usage

PATCH In review Wang Hai 2 participants 2 messages Jun 15, 2021 – Jun 16, 2021

Subsystems (4)
lore
Share & tools
lore

Wang Hai

author
#0 lore raw

PATCH 1/1 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.

---
 samples/bpf/xdp_sample_pkts_user.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
samples/bpf/xdp_sample_pkts_user.c +2 -1
index 706475e004cb..495e09897bd3 100644
@@ -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);
 }
 
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On Tue, 15 Jun 2021 21:57:24 +0800 Wang Hai <[email protected]> wrote:

xdp_sample_pkts usage() is missing the introduction of the "-S" option, this patch adds it.

---
 samples/bpf/xdp_sample_pkts_user.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Fixes d50ecc46d18f ("samples/bpf: Attach XDP programs in driver mode by default")
Quoted 14 lines
samples/bpf/xdp_sample_pkts_user.c +2 -1
index 706475e004cb..495e09897bd3 100644
@@ -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);
 }
 
Signature · 4 lines
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer