[GSoC'20 Weekly Update - Week 6] eBPF XDP Hook

Ankur Kothiwal ankur at freebsd.org
Thu Jul 16 18:25:46 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 project will also implement new map type and other eBPF
helper functions.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 this week:
- create hooks and link them to the pfil head when the eBPF XDP probe
is activated
- manage to list the XDP probes

Currently:
- This week's goal is to create a xdp_rx function which will pass the
received packets to the ebpf program where the packets can be further
processed.

Project GSoC Wiki: https://wiki.freebsd.org/SummerOfCodeIdeas#eBPF_XDP_Hooks
Github Repo for the code: https://github.com/rysto32/freebsd/tree/ebpf-import

Github repo including the changes made so far:
https://github.com/Ankurk99/freebsd/tree/ebpf-import

Thank you for reading. Please feel free to share your feedback and suggestions.

Thanks and Regards
Ankur Kothiwal


More information about the soc-status mailing list