From owner-soc-status@freebsd.org Tue Aug 11 19:19:10 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 971753B54B5 for ; Tue, 11 Aug 2020 19:19:10 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) (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 4BR2gx5xnDz3fjX; Tue, 11 Aug 2020 19:19:09 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: by mail-qt1-f180.google.com with SMTP id e5so10306759qth.5; Tue, 11 Aug 2020 12:19:09 -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=/10gOKVJrRNzFnxsqLFoZ1IRFosnQqltABQQAjJl980=; b=pkUZ2WacGDRKc5trveMGpItzri4uxdp+QJc8WJ4TCeMNpM7X50+7eXt4qnFpm1IavO Kow3bDtpc2+Kz0Or0iFKrL2zs2UnHMI4Jw/tidLPZoZxh7C/E/iPqz/V7IoqE1gG/rgr DMDedlWPwnMiqHKqwftUPeJvaYILMPOYygd5Jx6LalzSAsZUuNnrPWz7RN2XLKefpSC3 WxfIFsHTj7HrsJBfBDz0ubfcb6CcJNSp2NVULawKUdNw4Iun+M3bBJZqfY28eqM2Fvr7 2w0oyD3KQhHfsuhFUAIi6YeVovUovkBAVrtxZcnH4xtFb010ifBnQrcyV8Jd3LWpD8WB pxyw== X-Gm-Message-State: AOAM530upYQd3HoBpO+NFpke36VNQ/eijPZsfiGQW2dmXHdOrChEBI8K qnfj165Ye/nGh1Wle2JjIvrG0SNqpJ0= X-Google-Smtp-Source: ABdhPJxqLHajb8ssRnjtbLHnOAH03v69EN7clBiq13VVjXKtY91hiV2ASHwhZB2trkNZIrHY6ZeHdQ== X-Received: by 2002:ac8:6bc2:: with SMTP id b2mr2741552qtt.115.1597173547669; Tue, 11 Aug 2020 12:19:07 -0700 (PDT) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com. [209.85.160.178]) by smtp.gmail.com with ESMTPSA id u39sm22046866qtc.54.2020.08.11.12.19.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 12:19:07 -0700 (PDT) Received: by mail-qt1-f178.google.com with SMTP id b25so10313287qto.2; Tue, 11 Aug 2020 12:19:07 -0700 (PDT) X-Received: by 2002:ac8:7741:: with SMTP id g1mr2649586qtu.28.1597173547122; Tue, 11 Aug 2020 12:19:07 -0700 (PDT) MIME-Version: 1.0 From: Ankur Kothiwal Date: Wed, 12 Aug 2020 00:48:34 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly Update - Week 8 and 9] eBPF XDP Hook To: soc-status@freebsd.org, rstone@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4BR2gx5xnDz3fjX 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.180 as permitted sender) smtp.mailfrom=ankurkothiwal99@gmail.com X-Spamd-Result: default: False [-1.98 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[209.85.160.180:from]; 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(-0.89)[-0.888]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-0.78)[-0.778]; NEURAL_HAM_SHORT(-0.31)[-0.310]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.180:from]; FORGED_SENDER(0.30)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; 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: Tue, 11 Aug 2020 19:19:10 -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 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 : - 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