From owner-soc-status@freebsd.org Wed Jul 1 17:42:00 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 1986635804A for ; Wed, 1 Jul 2020 17:42:00 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 49xpSl2F3Jz4p18; Wed, 1 Jul 2020 17:41:59 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: by mail-qt1-f170.google.com with SMTP id d27so19098954qtg.4; Wed, 01 Jul 2020 10:41:59 -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=wKztEWjDaBfDFmFnl2Rcg53yczOupb0S3jHZB+a0Au8=; b=BecDn1mEElB8vZ2dxkO5I8SPPSYyqztvlGMoMPOPiJlWmL/znC9mQ3GqgmtFoEHGXy u6FpHWPNM2avDTBGjQXgYxj7ZHNXrcsx3jGBmAVDHuSPzUjqw25+Km50/VwRzvYL068y xKv6J5kXJDg3ERwqpLkXBb/zrTBL/O9txf69EztOAXkMJxhKKuiPTyPB3jDjeOUHCONG dDSPYWM5/5dhlwyCJGJWKdLz10bOEiyCIfFNLewPfTazn4mj4FbWdyU3SHq3hMAyVusI EpUCTtwCQxUgwNFvGvxY8wLyiS93Bn5GKbtUZ5tN//iiWWnJ8fTJKRujImIBcCCLJphR 81+g== X-Gm-Message-State: AOAM530buF8CAfKO6ttC+rdvE4q3yJWxVG7Zm5J4SKU0HuPbmTJFD4xw wJnQp4OhB9CwQnpJo8mfKn3kXC0U4GQpCw== X-Google-Smtp-Source: ABdhPJyhtdFG9mo6aNEX4tOA3BU2qSs/sTG+Di/+qZMT5gyk/fRW/hKoiWjxTjH9QR5WkzwD2ilyGQ== X-Received: by 2002:ac8:cc6:: with SMTP id o6mr9233429qti.70.1593625317793; Wed, 01 Jul 2020 10:41:57 -0700 (PDT) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com. [209.85.222.173]) by smtp.gmail.com with ESMTPSA id k45sm7230588qtc.62.2020.07.01.10.41.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Jul 2020 10:41:57 -0700 (PDT) Received: by mail-qk1-f173.google.com with SMTP id 145so20520583qke.9; Wed, 01 Jul 2020 10:41:57 -0700 (PDT) X-Received: by 2002:a37:a542:: with SMTP id o63mr24777748qke.316.1593625317087; Wed, 01 Jul 2020 10:41:57 -0700 (PDT) MIME-Version: 1.0 From: Ankur Kothiwal Date: Wed, 1 Jul 2020 23:11:26 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly Update - Week 4] eBPF XDP Hook To: soc-status@freebsd.org, hrs@freebsd.org, rstone@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49xpSl2F3Jz4p18 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.170 as permitted sender) smtp.mailfrom=ankurkothiwal99@gmail.com X-Spamd-Result: default: False [-1.71 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_NEQ_ENVFROM(0.00)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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)[]; DMARC_NA(0.00)[freebsd.org]; RWL_MAILSPIKE_GOOD(0.00)[209.85.160.170:from]; RCVD_TLS_ALL(0.00)[]; NEURAL_HAM_LONG(-0.83)[-0.829]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-0.80)[-0.797]; NEURAL_HAM_SHORT(-0.09)[-0.089]; RCVD_IN_DNSWL_NONE(0.00)[209.85.160.170:from]; FORGED_SENDER(0.30)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(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, 01 Jul 2020 17:42:00 -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: The probes were successfully listed but while activating probes we were getting some errors, so the probes were not getting activated correctly, which was resulting in kernel panic. This is fixed and now the probes are successfully activated. Currently I am on: - XDP hook - This week's goal is to create a XDP hook using pfil framework. 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 Ankur Kothiwal