[GSoC'20 Weekly Update - Week 8 and 9] eBPF XDP Hook
Ankur Kothiwal
ankur at freebsd.org
Tue Aug 11 19:19:10 UTC 2020
Hi all,
Project: Implement eBPF XDP for FreeBSD by extending VirtIO ethernet
driver if_vtnet
The goal of this project is to extend an existing FreeBSD network
driver,VirtIO if_vtnet to be able to call into an eBPF program when
processing a newly received packet. The driver will perform the basic
actions of XDP like PASS and DROP the packet as specified by the
program. The aim of this project is to add new probe sites
into the kernel that will call eBPF functions.
Mentor: Ryan Stone <rstone@> and Hiroki Sato <hrs@>
Progress made :
- write an eBPF program to process (currently drop and pass) ICMP traffic
- write a loader function to load the ICMP filter program to the kernel
- add XDP prog write an eBPF program to process ICMP traffictype to
eBPF infrastructure
Currently:
- The ICMP filter loads successfully but it's not filtering packets as
desired due to some complications in XDP implementation. So this week
the goal will be to fix this and get the filter work as desired.
Project GSoC Wiki: https://wiki.freebsd.org/SummerOfCodeIdeas#eBPF_XDP_Hooks
Github repo including the changes :
https://github.com/Ankurk99/freebsd/tree/ebpf-import
Github Repo for the original code:
https://github.com/rysto32/freebsd/tree/ebpf-import
Thank you for reading. Please feel free to share feedback.
Thanks and Regards
Ankur Kothiwal
More information about the soc-status
mailing list