From owner-soc-status@freebsd.org Thu Jul 9 19:34:15 2020 Return-Path: Delivered-To: soc-status@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 40FEB3541B4 for ; Thu, 9 Jul 2020 19:34:15 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B2mZZ2kV7z4WjQ; Thu, 9 Jul 2020 19:34:14 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: by mail-qt1-f171.google.com with SMTP id x62so2611107qtd.3; Thu, 09 Jul 2020 12:34:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=c5tO0gyUFanMZFQxc129B3TDQMzzpjv1WcqadsUZNns=; b=gR8kpc9fc8/bmk0qQlQiJIcGQU+WbmmwxP+NbsQzujBCZ1Kjxc2lefuSHEpX2l7Msz yhb8HW3Gu+LNmEjnW6wk7Tv6Kqiv1iW5a/YvEEJRcPboFwprdxZ09R/sGb24v1OUPMYd nzV1ZWyjkFvgpgpx/H18cIHs3JBnYlh1D7W8XPE9KMsWQLi1FU3bAoqxqIBBVhF1N4lA dwa1yKNwFUgtdqzIxNayAyEh2I9saZmKm+oIPnZ71KH7PJvPFjeEhkT7Lmqf6YoYWtKR u/UcfK7hsVsW8p30zgWzB+H1q2oTJIfgYLBZY/g7Rtz4DOqmXdaR2UW11zcWFUeOkpVn FHvA== X-Gm-Message-State: AOAM532vCph9U4oH7JWyLpF/2NqcW8kbhv1IRHSdlaLij7PYgZ0KQ53V UP8RRHK24UNaZW98rjwDe+kqzeUlGVQ= X-Google-Smtp-Source: ABdhPJyMP/khcNZnd1TV27V6G56fP/Kk3BVhm6Mc08UQgzpJrzx8Jc3j62+oMuFgz6MKhH+GfMu7jg== X-Received: by 2002:ac8:458b:: with SMTP id l11mr6496610qtn.111.1594323253126; Thu, 09 Jul 2020 12:34:13 -0700 (PDT) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com. [209.85.160.171]) by smtp.gmail.com with ESMTPSA id o145sm4746841qke.2.2020.07.09.12.34.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 12:34:12 -0700 (PDT) Received: by mail-qt1-f171.google.com with SMTP id k18so2576370qtm.10; Thu, 09 Jul 2020 12:34:12 -0700 (PDT) X-Received: by 2002:ac8:4250:: with SMTP id r16mr54202750qtm.378.1594323252380; Thu, 09 Jul 2020 12:34:12 -0700 (PDT) MIME-Version: 1.0 From: Ankur Kothiwal Date: Fri, 10 Jul 2020 01:03:41 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly Update - Week 5] eBPF XDP Hook To: soc-status@freebsd.org, rstone@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4B2mZZ2kV7z4WjQ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ankurkothiwal99@gmail.com designates 209.85.160.171 as permitted sender) smtp.mailfrom=ankurkothiwal99@gmail.com X-Spamd-Result: default: False [-1.65 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-0.999]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-0.96)[-0.965]; NEURAL_SPAM_SHORT(0.31)[0.310]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.171:from]; FORGED_SENDER(0.30)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.160.171:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ankur@freebsd.org,ankurkothiwal99@gmail.com] X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2020 19:34:15 -0000 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 and Hiroki Sato Progress made this week: This week most of the time was spent figuring about how the XDP hook will be implemented using pfil framework and a basic design for implementation was created. Currently I am on: - XDP hook - This week's goal is to create a basic XDP hook. 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