Skip to content

Commit f150ced

Browse files
takehayati-mo
authored andcommitted
examples: Add BPF_F_TEST_XDP_LIVE_FRAMES demo code
Signed-off-by: Takeru Hayasaka <[email protected]>
1 parent 94c4cdf commit f150ced

File tree

7 files changed

+454
-0
lines changed

7 files changed

+454
-0
lines changed

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Please see our [guide on what makes a good example](https://ebpf-go.dev/contribu
2323
* [tcx](./tcx/) - Print packet counts for ingress and egress.
2424
* XDP - Attach a program to a network interface to process incoming packets.
2525
* [xdp](xdp/) - Print packet counts by IPv4 source address.
26+
* [xdp_live_frame](xdp_live_frame/) - XDP-based traffic generator that uses live frame mode.
2627
* sched_ext - Attach a StructOpsMap to register a custom task scheduler. This feature is supported by kernel version starting from version 6.12.
2728
* [sched_ext](sched_ext/) - Minimal sched_ext_ops.
2829

examples/xdp_live_frame/bpf_bpfeb.go

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.73 KB
Binary file not shown.

examples/xdp_live_frame/bpf_bpfel.go

Lines changed: 132 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
1.73 KB
Binary file not shown.

0 commit comments

Comments
 (0)