From owner-soc-status@freebsd.org Sun Aug 30 13:01:32 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 7D6093BA7AD for ; Sun, 30 Aug 2020 13:01:32 +0000 (UTC) (envelope-from ritikagupta1998@gmail.com) Received: from mail-yb1-xb44.google.com (mail-yb1-xb44.google.com [IPv6:2607:f8b0:4864:20::b44]) (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 4BfYPQ59wlz3g75; Sun, 30 Aug 2020 13:01:30 +0000 (UTC) (envelope-from ritikagupta1998@gmail.com) Received: by mail-yb1-xb44.google.com with SMTP id h126so300436ybg.4; Sun, 30 Aug 2020 06:01:30 -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=YgLo2sgWYFD6+0bVLbHl1wUtiCAduWVyRojihktux4A=; b=hzGh7AsHVkFpUxaVTBkhDB9qpHfQkFFJdM2AHtYqrOKskyWmy7AygE2W8h5rVB/6tz RS5LItSXrHW993BjtXavfwgJ3oL+SZLQmEuhxIU5ty+X9KZFKBJxLbGZAze7BZRM7G09 5s5Hze1yoMYMPaPTMsk5kR5vx9s4ZjCZENy9ZSVh9aVp5Xc9urZnxDLD9FfZhPDtZb8b uILrH7Q3FHM7i/C6hWM6xQRahaJKJmhp8ldvYeS27mEA+cHHfhvv6p6RZOWSTk2X2Ei6 YKy0UaKjYIw2OHSKrTxNTRawJtXNY7UYMSIqDnlVAdlaop5G5YysXIMx9YWJpLWQKGZF h7mg== 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=YgLo2sgWYFD6+0bVLbHl1wUtiCAduWVyRojihktux4A=; b=iSkIn/9UQi3B3S/wXSyCDcoQ07yW13i+GG2Kno2gFGfMb3CZQjD2sg5a6njC6kPNrF v7raIU0zw16hafH6KzEXOgTsP3xzPHETCiscyrjHOL1Tk6HqXWk9JMMUU1MfcE+F0Nd3 m5YuELEIJswbSyO7h3JcIvegFE04Sr/phyt/WCWfHBjO1XyJ6mrg0w0Kbgr3w6vrQJ4Q IAp+VbbGzTctS9ols+2vB1REKUXytmUsqiTosWyNpI+9pMFhyb9M2nEM30nCRJmyfHn0 GAFuUQ3NHZH1PRTcrBUR9tQ+F7hG8WsYJX2mW8JYhb5D9t7CzLMZDCJKZNz3wGCacFwr 1jKQ== X-Gm-Message-State: AOAM531Cw84lu9TAldFWDl7xNG2w7P7ixGeBWKypO/BKn8GeEamFrhE5 YmBdvxGoQKdEmpdgjArbNZ/wOiaoZUOp5MdD0OSvZ4gF7dqYPA== X-Google-Smtp-Source: ABdhPJzoiVSNDjZRk3XIPfAdSAGUF+RIBPb0xfyCjapLhgEmx3U9IlzeVetlhwWDicH82UoNsDWDbhcdqMQSpMHTM70= X-Received: by 2002:a25:80c8:: with SMTP id c8mr13908366ybm.422.1598792489213; Sun, 30 Aug 2020 06:01:29 -0700 (PDT) MIME-Version: 1.0 From: Ritika Gupta Date: Sun, 30 Aug 2020 18:31:16 +0530 Message-ID: Subject: [ GSoC ' 20] Kernel Dump Regression Testing To: soc-status@freebsd.org X-Rspamd-Queue-Id: 4BfYPQ59wlz3g75 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=hzGh7AsH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ritikagupta1998@gmail.com designates 2607:f8b0:4864:20::b44 as permitted sender) smtp.mailfrom=ritikagupta1998@gmail.com X-Spamd-Result: default: False [-3.45 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.05)[-1.047]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.00)[-0.996]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b44:from]; NEURAL_HAM_SHORT(-0.41)[-0.408]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[soc-status]; 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: Sun, 30 Aug 2020 13:01:32 -0000 Hi everyone, *Project Description-* *https://wiki.freebsd.org/SummerOfCode2020Projects/KernelDumpRegressionTesting * The project aims to create a framework for recovering and testing those kernel dumps for a different set of configuration variables or code paths while logging every test case separately in a log file and later analyzing which code paths failed. The test script generates a combination of all the possible combinations of the configuration variables and prints the results in the Test Anything Protocol Format. Configuration variables which are integrated with the test file: - Compression (gzip/zstd) - Encryption - Emulated storage device (virtio-blk/ahci-hd/nvme) - Block size (512/4096) - Architecture (arm64/amd64/i386) Github repository with the code and instructions: https://github.com/ritika98/test_suite Output Logs generated from the script: https://gist.github.com/ritika98/50631b11469f1bed3dbaf2aa3b6ad783 My entire GSoC journey has been a pretty enjoyable ride, full of excitement, unexpected turns, and yes, expected blind turns. These three months added invaluable experience to my career. We faced several issues, bugs, and resolving them equally involved in-depth research. Tackling such problems boosts self-confidence and enthusiasm. Using this opportunity to express my deepest gratitude and thanks to the FreeBSD community for their constant support. My special thanks to the mentor @Mark Johnston who in spite of busy schedules, consistently guided me to be on the correct path, also allowing me to accomplish this project successfully. The useful advice and guidance made this project look easier to finish. I will make use of the gained skills and knowledge in the best possible way to attain career objectives. Thanks and Regards, Ritika Gupta From owner-soc-status@freebsd.org Mon Aug 31 13:08:05 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 16FD53C13A5 for ; Mon, 31 Aug 2020 13:08:05 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (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 4Bg9VW4PN7z4VRt for ; Mon, 31 Aug 2020 13:08:03 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: by mail-lj1-f195.google.com with SMTP id s205so2101749lja.7 for ; Mon, 31 Aug 2020 06:08:03 -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=Z7uTYfd+SXrz6ykBO0MqUz6a2bVQcNHkpx7bOYhJyn8=; b=qPOLpIU4mKODzwYzVWtFGVHKcxxV1J622r2F3YRbuyUHw4G/hE0ptNEng7KvV1T1gY 3eMU1rv6I8G5inA4iW2Kmwtr5s8RU2CNHrhuIGa/AaSky/K54D2261FrTcQLwKnmIX6K WPKGNi5N/HOJccY9TL1diukakRjulEGvtQQEXd5tnCi9LacdwlgV3rcRH0K4P4Q06DRM XFYMTovH03qHp3lBtO+JeHfP8JHh6XZ12NcV2Je5yzOunFy4kERADhsAgIo2efgVAaXa qKSuo+ctcAePPSo8Brw2ekPmQEDoVWWUiVw/Q0Hhh2H3stQ+3p+VZy73ott/DqqkjSDE XMvw== X-Gm-Message-State: AOAM532QV1XY6ClfTDx9Uz+70ajVKKbac6oqe4xHugIJP7LJJlg49Upr SCoVSLe2OTnNW5HmOk/pZR3eW9UTu8cV/w== X-Google-Smtp-Source: ABdhPJyHnLaa5OlAj+MXLfxfs7gX081T/by4ENOIdBAZFaHVNs5evS05NydvitXUgmp6txJELiKaMQ== X-Received: by 2002:a2e:8593:: with SMTP id b19mr424702lji.290.1598879281612; Mon, 31 Aug 2020 06:08:01 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id l82sm845663lfd.58.2020.08.31.06.08.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 06:08:01 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id r13so6639412ljm.0 for ; Mon, 31 Aug 2020 06:08:01 -0700 (PDT) X-Received: by 2002:a2e:808a:: with SMTP id i10mr668232ljg.313.1598879280820; Mon, 31 Aug 2020 06:08:00 -0700 (PDT) MIME-Version: 1.0 From: Denis Salopek Date: Mon, 31 Aug 2020 15:08:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC '20] NetFPGA SUME reference NIC device driver To: soc-status@freebsd.org X-Rspamd-Queue-Id: 4Bg9VW4PN7z4VRt 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.208.195 as permitted sender) smtp.mailfrom=denissale@gmail.com X-Spamd-Result: default: False [-1.74 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_SHORT(-0.00)[-0.001]; FORGED_SENDER(0.30)[denissal@freebsd.org,denissale@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; R_DKIM_NA(0.00)[]; TAGGED_FROM(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.79)[-0.791]; FROM_NEQ_ENVFROM(0.00)[denissal@freebsd.org,denissale@gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.95)[-0.949]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[soc-status@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.195:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.195:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[soc-status] 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, 31 Aug 2020 13:08:05 -0000 Hello everyone! Project wiki: https://wiki.freebsd.org/SummerOfCode2020Projects/NetFPGA_SUME_Driver After spending some time in the reviewing process and fixing a couple of hidden bugs, I am happy to report that the driver has been merged in FreeBSD (commit https://reviews.freebsd.org/rS364973 ). While programming the driver and trying out the SUME board with both available SUME NIC designs (reference NIC and NICv2), I was met with various unexpected hardware issues which proved to be difficult to address. To alleviate the problems arising from these issues, the NetFPGA reference NIC driver I've developed with the help from my mentors now includes some additional features, not available in the original Linux version: - more balanced TCP throughput, - link state detection / reporting, - access to hardware counters via sysctl, - watchdog function to reset the HW if it gets stuck in TX state. I plan to further develop for FreeBSD - I have already started working on the improved NetFPGA SUME NICv2 design and the current project really helped me to better understand reading and writing kernel code. Thank you for the chance to participate in this project. This experience was valuable as I have learned something new and further developed my skills which would be difficult for me without this project. Special thanks to my mentors Bjoern A. Zeeb and Marko Zec who provided a critical role in this project with their excellent feedback and contributions. Best regards, Denis Salopek From owner-soc-status@freebsd.org Mon Aug 31 13:48:38 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 D3DD13C2263 for ; Mon, 31 Aug 2020 13:48:38 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: from mail-qv1-f68.google.com (mail-qv1-f68.google.com [209.85.219.68]) (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 4BgBPL0fvcz4X9C; Mon, 31 Aug 2020 13:48:37 +0000 (UTC) (envelope-from ankur.kothiwal99@gmail.com) Received: by mail-qv1-f68.google.com with SMTP id cv8so187195qvb.12; Mon, 31 Aug 2020 06:48:37 -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 :content-transfer-encoding; bh=XGFL18Z0LMN/IqbxIbbR3lcOTIv1WTD8eiJEFDdfWp0=; b=UZGf4sdSGnjKzbIllPKyKr23cuVZCPrcR0Uc91u4q36VC/3OLNerz3ntOXaOd+SpQc fleOBs+iiqp0/kNICKJWzJfkhRV5oNgqJF5x3/zXbpHRqdAFp/onubEOlpqcuzsRG+Uq FnRrsrb4+Lc4us0EDPuS+Gdg3jLpHoHM5bSO9Xc0G9CsNwbLso8gV7x/CJHcxYOLwSDm xjyzqvJGBc/62cdIvUQwVsH0GuOR2alXwJFj4ejxeVUo1D1mQ5ge4L6fX+NhWt2ZHu6q Q6mW64Ydm/FECNKTkdJ5fqz2e6vw20McnL1GGL8aAniwdwzK57G8WyGK8ECcrelFX9s1 6sWg== X-Gm-Message-State: AOAM530x24b5EVtAGcMdvLtWuMluT3j8nW490AcrhOzbSigOCAC97Scr FlgAwczSR78ckvKoUh7MEDWcY5+0L35hyGLV X-Google-Smtp-Source: ABdhPJz8DOTwQxfr/3o/2buDFsWIgOuQq6WzvewKyyRxK+pcacshEf0Iud3TtlmPhdKdgwIBDTrQyA== X-Received: by 2002:a0c:8f01:: with SMTP id z1mr1116433qvd.223.1598881716909; Mon, 31 Aug 2020 06:48:36 -0700 (PDT) Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com. [209.85.219.52]) by smtp.gmail.com with ESMTPSA id z23sm9067473qkj.118.2020.08.31.06.48.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2020 06:48:36 -0700 (PDT) Received: by mail-qv1-f52.google.com with SMTP id y11so2687664qvl.4; Mon, 31 Aug 2020 06:48:36 -0700 (PDT) X-Received: by 2002:a05:6214:1841:: with SMTP id d1mr1131247qvy.135.1598881713093; Mon, 31 Aug 2020 06:48:33 -0700 (PDT) MIME-Version: 1.0 From: Ankur Kothiwal Date: Mon, 31 Aug 2020 19:18:00 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20] eBPF XDP hook To: soc-status@freebsd.org, rstone@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4BgBPL0fvcz4X9C 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.219.68 as permitted sender) smtp.mailfrom=ankurkothiwal99@gmail.com X-Spamd-Result: default: False [-2.38 / 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)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-0.97)[-0.974]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-0.95)[-0.948]; NEURAL_HAM_SHORT(-0.46)[-0.459]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[209.85.219.68:from]; FORGED_SENDER(0.30)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.219.68: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)[ankur@freebsd.org,ankurkothiwal99@gmail.com]; TAGGED_FROM(0.00)[]; MAILMAN_DEST(0.00)[soc-status] 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, 31 Aug 2020 13:48:38 -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 Tasks completed during the GSoC: - Implemented XDP hook to pass and drop packets - Created a loader program to attach the eBPF program to the kernel - A test program to DROP ICMP filter Future Work: - Currently we can only attach the XDP hook to PASS and DROP the packets. The work on detaching the hook is left. - The XDP action to =E2=80=9CTX=E2=80=9D and =E2=80=9CREDIRECT=E2=80=9D the= packets For more detailed explanation of the project please read the project Final Report at: 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 This GSoC has been a very fruitful experience which will definitely help me in my career. I learned a lot of things about the kernel and got to use the technologies which previously I have only studied about. I would like to specially thank my mentor 'Ryan Stone' who was a constant source of help in this entire journey. I am thankful to the broader FreeBSD community for giving me this opportunity to be a part of such an amazing organization. Thanks to the org-admins who made this journey a very smooth and joyful rid= e. Thank you Ankur Kothiwal