From owner-soc-status@freebsd.org Wed Jun 17 13:16:57 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 D547034EDA4 for ; Wed, 17 Jun 2020 13:16:57 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (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 49n5FN71Cvz3XYM for ; Wed, 17 Jun 2020 13:16:56 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: by mail-qt1-f182.google.com with SMTP id w9so1430812qtv.3 for ; Wed, 17 Jun 2020 06:16:56 -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=JGMGqVz4UAdRd1RqeGWBnGlX19d4Z40/RKb1xe2CSN4=; b=YuBLSOROEjeaDGnwnAEWT4TQ07bA8RPD9WCVv4Wy7hXHU52j2Qkqmeio3jr0BGaOEH pJcw34dAvhAbQqQDgrUm8bI57kMjSTaFIMAe6nqjcLLI3vYPFPwQJKasW3/GLeyTqPns 9w1smANQPVupv6HRvvK1Ubi+G3lhNlyAV+AXcBHv0NqBFKSOWCHMXdtF46aG+jf+hE2I 8TuLWwk3M0rkIQxDWy7baMffAqpvIdu7vebbgFAs8geFzkG4cRacE1qDSKNnvUoi3DUM ySLQJ2jJJrSv/wSDkf7mwOXtDRrtWhDQXor/zQY/aGi7uyq0IvrywwTR2lsAulSahT8K BRQg== X-Gm-Message-State: AOAM533WbVwV3ChixUEFcgUvMe8m31/0d5Cqp5QNXsmGCFoRPDmBTYuE AD6mZ2n4SCkyJkvLRmDEehjgwd2BXro= X-Google-Smtp-Source: ABdhPJyejYBLakxCcVOFPK4cNpLZmEX3dQ40pfZzrjO1kJUCjMdE+MDAT2a+Tair1iaqnGFx0HYV/g== X-Received: by 2002:ac8:6f30:: with SMTP id i16mr26972663qtv.275.1592399815324; Wed, 17 Jun 2020 06:16:55 -0700 (PDT) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com. [209.85.160.176]) by smtp.gmail.com with ESMTPSA id 185sm4051227qkd.3.2020.06.17.06.16.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jun 2020 06:16:55 -0700 (PDT) Received: by mail-qt1-f176.google.com with SMTP id y1so1400364qtv.12 for ; Wed, 17 Jun 2020 06:16:54 -0700 (PDT) X-Received: by 2002:ac8:4143:: with SMTP id e3mr25615437qtm.28.1592399814029; Wed, 17 Jun 2020 06:16:54 -0700 (PDT) MIME-Version: 1.0 From: Ankur Kothiwal Date: Wed, 17 Jun 2020 18:46:27 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly Update - Week 2] eBPF XDP Hook To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49n5FN71Cvz3XYM 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.182 as permitted sender) smtp.mailfrom=ankurkothiwal99@gmail.com X-Spamd-Result: default: False [-0.59 / 15.00]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[209.85.160.182:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.08)[0.083]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.94)[-0.945]; RCVD_COUNT_THREE(0.00)[4]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.27)[0.268]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.182:from]; FORGED_SENDER(0.30)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; DMARC_NA(0.00)[freebsd.org]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; TAGGED_FROM(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] 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: Wed, 17 Jun 2020 13:16:57 -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 This week I compiled and installed the changes we had made in the kernel on the virtualbox. Also I researched about the different data structures like trie and hash tables which will be useful to implement XDP. Currently I am fixing the bugs encountered while compiling the changes. Project GSoC Wiki: https://wiki.freebsd.org/SummerOfCodeIdeas#eBPF_XDP_Hooks Github Repo for the code: https://github.com/rysto32/freebsd/tree/ebpf-import For above related commits refer: https://github.com/Ankurk99/freebsd/tree/ebpf-import Thank you for reading. Please feel free to share your feedback and suggestions. Thanks and Regards