From owner-soc-status@freebsd.org Sun Jun 7 15:06: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 05DDB32EB8E for ; Sun, 7 Jun 2020 15:06:57 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) (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 49g08v59NLz4045 for ; Sun, 7 Jun 2020 15:06:55 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: by mail-lf1-f65.google.com with SMTP id 202so8663989lfe.5 for ; Sun, 07 Jun 2020 08:06:55 -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=+VRB7KAJ+1xY27NT8ytFlfY7fNYsKd3mM0C4I9qF8b0=; b=bsAxECuk69/27JDq/un6Vhm3DV8ej7W7uERA8rfnKBUQZpG4awMXPEipaHDySV2tzE gu1mh3huQaAw0iWCGNns6aCEY5o0VFWHXLBwcDYcgJQNTejWjhzuC/Z/9GrKStuebR+o m4VP+Qa9nA1XJJKzSP/bLREieLqI1Di6hy6FaQKoaQFf7kCUn4cjSGMiB5fouw50TKBu WG6QAZhz7Uh+LFo5kZTvd94yIyoOa7TNjmEmvZ/i6VyqW0pn6GhBcrvxsBMxA/GL+ty8 wZ3t/eN4P7uzXHDBB4smPMM1G2KSMVsHy7vRifPQ/pulvOX9816FpcD0wPMv0jruMGip P72Q== X-Gm-Message-State: AOAM530oST91iygoOE5bN3aZPPEvXAebDnnFTqz4/rVR2NK+uzHyQR9j eQgsnfJhoGozHf9a9UVFeBYnfLe2WRM= X-Google-Smtp-Source: ABdhPJwFWkvZ0eum9TbjBob67gIoB7jw/HjvIeuW/UE9zvYzLbodkIQVj+wpcHRsM1462s0lDltpRA== X-Received: by 2002:a19:c751:: with SMTP id x78mr10504380lff.82.1591542412907; Sun, 07 Jun 2020 08:06:52 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id b17sm2978195ljd.125.2020.06.07.08.06.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Jun 2020 08:06:52 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id e4so17384264ljn.4 for ; Sun, 07 Jun 2020 08:06:52 -0700 (PDT) X-Received: by 2002:a2e:b17a:: with SMTP id a26mr9630386ljm.348.1591542412200; Sun, 07 Jun 2020 08:06:52 -0700 (PDT) MIME-Version: 1.0 From: Denis Salopek Date: Sun, 7 Jun 2020 17:06:49 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 intro & progress] NetFPGA SUME reference NIC device driver To: soc-status@freebsd.org X-Rspamd-Queue-Id: 49g08v59NLz4045 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of denissale@gmail.com designates 209.85.167.65 as permitted sender) smtp.mailfrom=denissale@gmail.com X-Spamd-Result: default: False [-0.74 / 15.00]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.14)[0.135]; NEURAL_SPAM_LONG(0.03)[0.031]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.65:from]; NEURAL_HAM_MEDIUM(-0.90)[-0.902]; FORGED_SENDER(0.30)[denissal@freebsd.org,denissale@gmail.com]; DMARC_NA(0.00)[freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.167.65:from]; 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)[denissal@freebsd.org,denissale@gmail.com]; TAGGED_FROM(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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: Sun, 07 Jun 2020 15:06:57 -0000 Hi all, The aim of this project is to create a device driver for NetFPGA SUME (a development board with a Virtex-7 FPGA and 4 SFP+ 10 Gbps ports). This would enable the use of this board as a 4x 10Gbps NIC on FreeBSD, along with Netmap support for fast-throughput packet processing. *Mentors* Marko Zec, Bjoern A. Zeeb (zec@fer.hr, bz@freebsd.org) *My progress in the last few weeks* - set up the environment (fresh FreeBSD 12.1 installation for NetFPGA testing and another computer with an Intel X520 connected to the NetFPGA for RX/TX testing in the later stage), - researched iflib(4) and netgraph(4) in order to figure out how to work with them, - created an iflib/netgraph mockup driver just to see if I could make iflib work before trying it with the real hardware, - researched the existing Linux SUME driver, - decided that iflib is not the real tool for the job, decided to abandon the idea and start writing a device driver from scratch (modeled by the Linux driver), - created a dummy driver which loads/unloads when the board is connected and disconnected. *My Wiki page* https://wiki.freebsd.org/DenisSalopek *Project Wiki page* https://wiki.freebsd.org/SummerOfCode2020Projects/NetFPGA_SUME_Driver *Github* https://github.com/denisSal/ng-sume https://github.com/denisSal/freebsd-sume Suggestions and feedback are welcome, of course! Best regards, Denis From owner-soc-status@freebsd.org Mon Jun 8 10:59:50 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 148AA32B984 for ; Mon, 8 Jun 2020 10:59:50 +0000 (UTC) (envelope-from shivankgarg98@gmail.com) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 49gVdJ6RTNz4DK5; Mon, 8 Jun 2020 10:59:48 +0000 (UTC) (envelope-from shivankgarg98@gmail.com) Received: by mail-ej1-f45.google.com with SMTP id a25so17783053ejg.5; Mon, 08 Jun 2020 03:59:48 -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:cc; bh=zkY/x/5mgyg3MUcOp8D6uLSKw+9cLokJ2iuynKdIdTo=; b=iJtaW3+acD0hD+fRi4mUIcQES/r4+/7o8ORrpQdS8Mg/OmtEy3WxJPd/HTo96hm+eN pslqJNjinhpY5p+PzyKIYz4PIO9eaX6cPSwHbhxJeDz9O7Hi5sQb8Sm+uZuxf+5BSOqw cc9WxmDTtEtD88A/yexQ33qg4BAtS7Mx8f6rrcoMTFi1bSwSzJgOMkbb4CnAG7hAZESI hrOkD+oBe1Cn6IREWRnkGXuihOl3Kp/B6ETLfB+FG/ARmjxHkpRmxLhGs1jl82iSqQB6 6WlsViuoYnR89wyXTwhzexQI5La5JgIwtDF6UWeeGMDnMHl3A2Qx4BKE2+rOmJCjOWxa AlbQ== X-Gm-Message-State: AOAM533ObmFLD/zChQVczhkK6qsWwt7OU3VRJAvDNZnZv1bT8RdSZmJ7 VU689YrMJ5ObwbEl47+3Ot3UxSzxRJA= X-Google-Smtp-Source: ABdhPJwVfa9p0bbwMTd9XEfm9GVZrCwE/OUg1n75RjZciVMBUl/pxEF5y2lYa5yGswZ+fTSXHMDgPw== X-Received: by 2002:a17:906:95d6:: with SMTP id n22mr18732306ejy.138.1591613987083; Mon, 08 Jun 2020 03:59:47 -0700 (PDT) Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com. [209.85.218.52]) by smtp.gmail.com with ESMTPSA id f19sm11975874edq.14.2020.06.08.03.59.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jun 2020 03:59:46 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id o15so17742370ejm.12; Mon, 08 Jun 2020 03:59:46 -0700 (PDT) X-Received: by 2002:a17:906:a402:: with SMTP id l2mr21413595ejz.14.1591613986398; Mon, 08 Jun 2020 03:59:46 -0700 (PDT) MIME-Version: 1.0 From: Shivank Garg Date: Mon, 8 Jun 2020 16:29:30 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly Update] Adding audit(4) support to NFS To: soc-status@freebsd.org Cc: Alan Somers X-Rspamd-Queue-Id: 49gVdJ6RTNz4DK5 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of shivankgarg98@gmail.com designates 209.85.218.45 as permitted sender) smtp.mailfrom=shivankgarg98@gmail.com X-Spamd-Result: default: False [-1.48 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-0.89)[-0.894]; RWL_MAILSPIKE_GOOD(0.00)[209.85.218.45:from]; NEURAL_SPAM_SHORT(0.29)[0.285]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-0.88)[-0.875]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.218.45:from]; FORGED_SENDER(0.30)[shivank@freebsd.org,shivankgarg98@gmail.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[shivank@freebsd.org,shivankgarg98@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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: Mon, 08 Jun 2020 10:59:50 -0000 Hi, This project aims to add audit(4) support to NFS, which will allow auditd(8) to just run on the NFS server and audit all activities within the NFS network. Audit works mostly on the syscall level and NFS is implemented within the kernel, which means the NFS RPCs don't generate any audit records on the server. Note that audit(4) can still be used on the NFS network but auditd(8) must run on every NFS client. Til now I made the following progress: * set-up a development environment for NFS client and server. * Familiarized me with the NFS and Audit source code, documentation, and usage. Currently, I am: * coming up with the design for audit. * Experimenting with code to see if it works as expected. Please, do Check this project on Github: https://github.com/shivankgarg98/freebsd/tree/user/shivank/nfs_audit Project wiki: https://wiki.freebsd.org/SummerOfCode2020Projects/AddAuditSupportToNFS Please feel free to share your ideas and feedback on this project. Best Regards, Shivank Garg From owner-soc-status@freebsd.org Tue Jun 9 12:01:20 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 5D5B832ABCA for ; Tue, 9 Jun 2020 12:01:20 +0000 (UTC) (envelope-from shubhgupta2104@gmail.com) Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (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 49h7xq0mvBz4Qnt for ; Tue, 9 Jun 2020 12:01:18 +0000 (UTC) (envelope-from shubhgupta2104@gmail.com) Received: by mail-oi1-f172.google.com with SMTP id a3so6479367oid.4 for ; Tue, 09 Jun 2020 05:01:18 -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=EKoPMi1K65UgVSim7AWemwAenbhIfrS+TlztdCplpzk=; b=R8xlcfEu3iep47Bo0kxfBAzvFaxsvKc9BnOUDK+sB1rl96WIG0uXDlMwUJWaJbJCtO bptEYQNpZJR3YXz1teioR5vAJCl2IYDNejNbNAtF2uIepkzc8Dy+81sC9uGwqbzT+km8 7fnsQeFcbJ5fCzLbZ+G20uZdDEqN01+rTCwKMwWJ+09FBbo5jIewQHT68zdyoBX6+hOj X3FAlxA93nMFlPnNzrRGHglemPc88kE2jVJ4krsvHsOEub/Zpy/2W9Qm4jVcwm1ABvjD qTW4NBOwxUdHPB0IqTDInW3eyNxdvIW3vrpVF1xZhagUGsa8W+fWL+xDf47R/sBdsfQq eDZA== X-Gm-Message-State: AOAM531iKbDGbyT1Q3gPrJyyw5hpoVcAGt+jifLe6DgGWLTiClffJoG/ eY4whiEt+Gx9wUn8eSEyXCJljkZyBXI= X-Google-Smtp-Source: ABdhPJz3KLq2TSQF15r1fD/9ekXO1qgaYUIoHHAwXbGSWQAmnnmaiAEUyXJB+e49jWvla4IDM/46mQ== X-Received: by 2002:aca:55c1:: with SMTP id j184mr2856638oib.25.1591704077346; Tue, 09 Jun 2020 05:01:17 -0700 (PDT) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com. [209.85.210.54]) by smtp.gmail.com with ESMTPSA id h18sm131742oti.27.2020.06.09.05.01.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Jun 2020 05:01:16 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id s13so16357950otd.7 for ; Tue, 09 Jun 2020 05:01:16 -0700 (PDT) X-Received: by 2002:a9d:218a:: with SMTP id s10mr19835720otb.329.1591704076670; Tue, 09 Jun 2020 05:01:16 -0700 (PDT) MIME-Version: 1.0 From: Shubh Gupta Date: Tue, 9 Jun 2020 17:31:05 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [ GSoC ' 20 weekly update ] Capsicumization of the base system To: soc-status@freebsd.org X-Rspamd-Queue-Id: 49h7xq0mvBz4Qnt X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of shubhgupta2104@gmail.com designates 209.85.167.172 as permitted sender) smtp.mailfrom=shubhgupta2104@gmail.com X-Spamd-Result: default: False [-1.17 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; 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)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.81)[-0.806]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[freebsd.org]; NEURAL_SPAM_SHORT(0.22)[0.223]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.172:from]; NEURAL_HAM_MEDIUM(-0.58)[-0.583]; FORGED_SENDER(0.30)[shubh@freebsd.org,shubhgupta2104@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.167.172:from]; 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:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[shubh@freebsd.org,shubhgupta2104@gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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, 09 Jun 2020 12:01:20 -0000 Hello everybody, In the past week, I was able to make the following progress: * First attempted to sandbox traceroute6 by mimicking D9303 * Encountered a problem, because of a different algorithm, hence modified the application to use RAW socket instead of a UDP socket for the UDP case. * Wrote the code to set the UDP header and calculate the checksum for the UDP case * Finally got traceroute working for the UDP case What I will be working on next: * Fix traceroute6 warnings(Makefile has warn=3) * Get traceroute6 working in the sandbox for ICMP mode * Work on a simple test suite to test for the sandbox. From owner-soc-status@freebsd.org Wed Jun 10 17:37:13 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 0A39633A9E4 for ; Wed, 10 Jun 2020 17:37:13 +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 49hvLw04wLz4JvT; Wed, 10 Jun 2020 17:37:11 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: by mail-qt1-f170.google.com with SMTP id k22so2419473qtm.6; Wed, 10 Jun 2020 10:37:11 -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=2MeoGUUDMThuaFK/htPw4C4YH5E5cW4j3LsjvTJHnEE=; b=i1g9RutmW/u/2ZEsYrF89gqtrOS4PhIf9eKlpOlLu8GhogFVnVVoHarPoyRpEjsrHq xc/oiDpFEK9Y0s+/Gw2TtLtLk6kT6ut4pHUywPWUHwq8oavYlf6gA4w2fvMgX0ccjqYP cZoWsbeCuoD3iF/TDusZrIyfwbTpX/A5myPzw7oZ4iNp4TCC+SBTQadHDihqs+CO/Sq4 PcP4NDiPV7plLwVswjlCF6R4K/XhnvVS1+jL/x3vsUWec76M6K+pCf7iAXCtI+khar8/ 9/OCF7606zR0aCQPaetZt38BTRJUdseeJOX/R7n8HLg0RJonxHHOa2P4+TULN0U4VReS ka6g== X-Gm-Message-State: AOAM53337TFjPHWHGgk5yD42YgCFfCrZz/irYglvrKtl4+tEsbkG0Pkt tM4FglOsihXqJLLKJUa6O+UUcBnClefYBw== X-Google-Smtp-Source: ABdhPJzbXneIhaINM6CFb2kk5l+1L00g/b/02mcQJbYb/AlOXteqWA8zJxNAqV/o+6QktAZbG/28zg== X-Received: by 2002:aed:3b0d:: with SMTP id p13mr4608083qte.263.1591810630733; Wed, 10 Jun 2020 10:37:10 -0700 (PDT) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com. [209.85.222.175]) by smtp.gmail.com with ESMTPSA id d17sm268703qke.101.2020.06.10.10.37.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jun 2020 10:37:10 -0700 (PDT) Received: by mail-qk1-f175.google.com with SMTP id 205so2876588qkg.3; Wed, 10 Jun 2020 10:37:09 -0700 (PDT) X-Received: by 2002:a37:2e86:: with SMTP id u128mr4246054qkh.26.1591810628942; Wed, 10 Jun 2020 10:37:08 -0700 (PDT) MIME-Version: 1.0 From: Ankur Kothiwal Date: Wed, 10 Jun 2020 23:06:40 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Weekly Update - Week 1] eBPF XDP Hook To: soc-status@freebsd.org, rstone@freebsd.org, hrs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49hvLw04wLz4JvT 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 [-2.27 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; 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)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[209.85.160.170:from]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-0.94)[-0.939]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-0.92)[-0.922]; NEURAL_HAM_SHORT(-0.41)[-0.413]; 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)[]; 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: Wed, 10 Jun 2020 17:37:13 -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 The aim for the design implementation was to register a struct ebpf_probe when an interface is registered with pfil(9), and when a program is attached to the ebpf probe, we will add a hook to the pfil head for the interface to add a hook we used ebpf_activate_probe()). But currently it is very specific to syscall probes. So for the activating probe, we modified the ebpf_activate_probe to be of general use and moved the syscall related active probe to a new function ebpf_active_syscall_probe(). When initializing syscall probes, the activate pointer points to the ebpf_active_sycall_probe() function and when the XDP probe is registered, the function pointer can be set to a XDP related function. To register with pfil_add_hook, we used the ebpf_probe_fire() as a wrapper function to be used as general function and for syscall related callback we created a new function ebpf_syscall_probe_fire(). 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 From owner-soc-status@freebsd.org Thu Jun 11 21:13:56 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 A1CE3341A88; Thu, 11 Jun 2020 21:13:56 +0000 (UTC) (envelope-from ahsanbarkati@gmail.com) Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) (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 49jc6W6Vyjz4Pt1; Thu, 11 Jun 2020 21:13:55 +0000 (UTC) (envelope-from ahsanbarkati@gmail.com) Received: by mail-lf1-x141.google.com with SMTP id c12so4306970lfc.10; Thu, 11 Jun 2020 14:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=FH4xP//iAbdADzlwWwh/da+FLqhDsm0zxyhqW+WOvyk=; b=qUQLWIvr1UA1clAYcmcrlhCatjh1+GgF8qsxGcS11vxfpSZcrGjbKey3Oad3fi09kf o5qZOD6f735Jr/19RzBsTHn5VlcpCttiBb/AvFj09k4zeSJCoHZUeE74E16AEyniKFST 3R84Tr23xL9p3Sp5Ox9cp3LJFcY7AIGxpf1hTwnfLVUHfHEqqOc4o5aE6Vl80bF1XItc JS1CN1Kg5Cr8NnnvaD7mHBQVcjrVVErJWmlSBryPRq7p/fBFDITrR5ZU5M7ErZPf6DBa sBkq8sbGTlV9BtatcSZqhXGvHtGwpElT6S+7ig3ggGtZ/WreaPBvjT1C2+RszSIHUC/W 0+rg== 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:cc; bh=FH4xP//iAbdADzlwWwh/da+FLqhDsm0zxyhqW+WOvyk=; b=Cq5HOi8FZjxP7wCWEPsAVcdRS7cRah9cFbEgq6ZV6NFpV9h+p5Hil87KpzJkxxuGcj mjRU+0o89Rahxinicjnuts9W4nMsVzIuPa9FbpgzIJevlTPtmD/DTN/bb91BsUX5ew7o aYCd6nNuMsczCNRXaj//VKU3DVJDePnkuMUTOl0nEXZxqd/LHpy/spMBRqhy5WOCjWBB 4NF+sTkOEthJ2qTa83RGBwWrabYOpKlpxENdTJPse4jgRvUETI1YYL1SZUHmGUoawD84 3o1AcNxTHvaKg1flBDEI2LJ6Lq6Bn6dwtuI/6T2DOklmiSVh8lDwVXXbcxgrpsi4tFU5 FIMA== X-Gm-Message-State: AOAM530Z8o2ecZodcriFQ2Fm+F+5dy8wP8Wlft9I9u+0RoyL/LK3llVh uLipXzxcpJjza04O5Rxgd+w8/q0g9OEJsevzvvvxDeImIpHQrg== X-Google-Smtp-Source: ABdhPJyORNu4hS+SPjRBeocr3OtBNETmqIhk625uMw6GQei1n9UnRei/kvQ6g5qdSFODo51u7fOiDRlGwgwo3Rh7rDE= X-Received: by 2002:a19:c187:: with SMTP id r129mr5216890lff.35.1591910032590; Thu, 11 Jun 2020 14:13:52 -0700 (PDT) MIME-Version: 1.0 From: Ahsan Barkati Date: Fri, 12 Jun 2020 02:43:41 +0530 Message-ID: Subject: [GSoC'20] Network Configuration Libraries To: freebsd-hackers@freebsd.org, soc-status@freebsd.org X-Rspamd-Queue-Id: 49jc6W6Vyjz4Pt1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=qUQLWIvr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ahsanbarkati@gmail.com designates 2a00:1450:4864:20::141 as permitted sender) smtp.mailfrom=ahsanbarkati@gmail.com X-Spamd-Result: default: False [-2.89 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.007]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.01)[-1.008]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.13)[0.126]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::141:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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, 11 Jun 2020 21:13:56 -0000 Hi everyone, The project "Network Configuration Libraries" aims to create libraries which would enable programmatic configuration and management of Network. The intended libraries which are to be developed are libroute (for route management) and libipfw (for packet filtering). * Mentors: Kristof Provost and Tom Jones During the first few days, we made the following progress: * Developed some basic tests for the `/sbin/route` tool. These tests currently cover the 'add', 'change' and 'delete' functionality. The code has been put into review and it can be found here -> https://reviews.freebsd.org/D25220 * Read the code of libifconfig to get some insights of the implementation ideas around the libifconfig, and currently working on the preliminary design of the libroute. More details about the project can be found at the following links * Project Wiki Page: https://wiki.freebsd.org/SummerOfCode2020Projects/NetworkConfigurationLibraries * My blog: https://ahsan.live/Introduction-to-the-Network-Configuration-Libraries-in-Freebsd.html * GitHub Link: https://github.com/ahsanbarkati/freebsd Please feel free to share your views and ideas around these libraries. Regards, Ahsan Barkati Final Year Undergraduate Student, IIT Kanpur, India