Skip to content

Commit cced069

Browse files
tohojoAlexei Starovoitov
authored andcommitted
samples/bpf: Remove the xdp_sample_pkts utility
The functionality of this utility is covered by the xdpdump utility in xdp-tools. There's a slight difference in usage as the xdpdump utility's main focus is to dump packets before or after they are processed by an existing XDP program. However, xdpdump also has the --load-xdp-program switch, which will make it attach its own program if no existing program is loaded. With this, xdp_sample_pkts usage can be converted as: xdp_sample_pkts eth0 --> xdpdump --load-xdp-program eth0 To get roughly equivalent behaviour. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Link: https://lore.kernel.org/r/20230824102255.1561885-6-toke@redhat.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent eaca21d commit cced069

File tree

3 files changed

+0
-256
lines changed

3 files changed

+0
-256
lines changed

samples/bpf/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ tprogs-y += cpustat
4444
tprogs-y += xdp_adjust_tail
4545
tprogs-y += xdp_fwd
4646
tprogs-y += task_fd_query
47-
tprogs-y += xdp_sample_pkts
4847
tprogs-y += ibumad
4948
tprogs-y += hbm
5049

@@ -95,7 +94,6 @@ cpustat-objs := cpustat_user.o
9594
xdp_adjust_tail-objs := xdp_adjust_tail_user.o
9695
xdp_fwd-objs := xdp_fwd_user.o
9796
task_fd_query-objs := task_fd_query_user.o $(TRACE_HELPERS)
98-
xdp_sample_pkts-objs := xdp_sample_pkts_user.o
9997
ibumad-objs := ibumad_user.o
10098
hbm-objs := hbm.o $(CGROUP_HELPERS)
10199

@@ -148,7 +146,6 @@ always-y += cpustat_kern.o
148146
always-y += xdp_adjust_tail_kern.o
149147
always-y += xdp_fwd_kern.o
150148
always-y += task_fd_query_kern.o
151-
always-y += xdp_sample_pkts_kern.o
152149
always-y += ibumad_kern.o
153150
always-y += hbm_out_kern.o
154151
always-y += hbm_edt_kern.o

samples/bpf/xdp_sample_pkts_kern.c

Lines changed: 0 additions & 57 deletions
This file was deleted.

samples/bpf/xdp_sample_pkts_user.c

Lines changed: 0 additions & 196 deletions
This file was deleted.

0 commit comments

Comments
 (0)