Date: Mon, 31 Aug 2020 19:18:00 +0530 From: Ankur Kothiwal <ankur@freebsd.org> To: soc-status@freebsd.org, rstone@freebsd.org Subject: [GSoC'20] eBPF XDP hook Message-ID: <CA%2BQRpiFGpf1AhPJvMhBQ--8UGs9oe4c%2BG5waPz-YpxiKowrC2A@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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@> Tasks completed during the GSoC: - Implemented XDP hook to pass and drop packets - Created a loader program to attach the eBPF program to the kernel - A test program to DROP ICMP filter Future Work: - Currently we can only attach the XDP hook to PASS and DROP the packets. The work on detaching the hook is left. - The XDP action to =E2=80=9CTX=E2=80=9D and =E2=80=9CREDIRECT=E2=80=9D the= packets For more detailed explanation of the project please read the project Final Report at: 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 This GSoC has been a very fruitful experience which will definitely help me in my career. I learned a lot of things about the kernel and got to use the technologies which previously I have only studied about. I would like to specially thank my mentor 'Ryan Stone' who was a constant source of help in this entire journey. I am thankful to the broader FreeBSD community for giving me this opportunity to be a part of such an amazing organization. Thanks to the org-admins who made this journey a very smooth and joyful rid= e. Thank you Ankur Kothiwal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BQRpiFGpf1AhPJvMhBQ--8UGs9oe4c%2BG5waPz-YpxiKowrC2A>