From owner-soc-status@freebsd.org Thu Jul 2 16:27:19 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 A49FB35AAE7 for ; Thu, 2 Jul 2020 16:27:19 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 49yNm63WdRz42lQ for ; Thu, 2 Jul 2020 16:27:18 +0000 (UTC) (envelope-from denis.sale@gmail.com) Received: by mail-lj1-f173.google.com with SMTP id n23so33047943ljh.7 for ; Thu, 02 Jul 2020 09:27: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=AQmzPfmC5SnZEw5Z+vvC/vOwroD5E5Tfkyajl0N64vY=; b=fglYQch5SQ2h80li70FWhItsu6O2kDJ7fxCme+NT+pmofD7UXGHlNe49jh24klUBKE oB97v+mv/TRJRDO3wdy6u6H50OsVWs+lGSjpcJzDI/XDFn4252smNShdfotxdpd4r91h Ei4zHTnuVR8uYz75PmExc1dBb06J39G0xTheMVmRO5pJFREqkBwaZAxMoGm8b5p27ohT ElZLsowS1gxeiU70yfe7PLQwOjgrkM/OSN7hFCb/2WEnlVRAQb3ElhHehSfegWawFBLW dTA2yrLLpGC9qGguDCdCdJA+IYhm9vnF28kAVfT+IgHvpxeN9ERuxycBfbm/4E3kLV7m pRlA== X-Gm-Message-State: AOAM533xgXE0FseUqWx39tPpVjS1+4xJhLBck/rKsycubR4A+0v7/esp TFxIjQc2YiH1cGvylLqosGF2DMgX9II= X-Google-Smtp-Source: ABdhPJyCHuehyhRicNkA9Vk7Vkou0XDyvYv5LL1yNC8qxnM2BX+x55FaBB9CGqU4D4BBvD0Cw0dNow== X-Received: by 2002:a2e:914:: with SMTP id 20mr16647268ljj.57.1593707236599; Thu, 02 Jul 2020 09:27:16 -0700 (PDT) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com. [209.85.208.180]) by smtp.gmail.com with ESMTPSA id y2sm3561224lfh.1.2020.07.02.09.27.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Jul 2020 09:27:16 -0700 (PDT) Received: by mail-lj1-f180.google.com with SMTP id d17so18301295ljl.3 for ; Thu, 02 Jul 2020 09:27:16 -0700 (PDT) X-Received: by 2002:a2e:730c:: with SMTP id o12mr10995550ljc.165.1593707236007; Thu, 02 Jul 2020 09:27:16 -0700 (PDT) MIME-Version: 1.0 From: Denis Salopek Date: Thu, 2 Jul 2020 18:27:16 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: [GSoC'20 Update] NetFPGA SUME reference NIC device driver To: soc-status@freebsd.org X-Rspamd-Queue-Id: 49yNm63WdRz42lQ 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.173 as permitted sender) smtp.mailfrom=denissale@gmail.com X-Spamd-Result: default: False [-1.31 / 15.00]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; 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.86)[-0.857]; RCVD_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_SPAM_SHORT(0.11)[0.110]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.173:from]; NEURAL_HAM_MEDIUM(-0.56)[-0.560]; FORGED_SENDER(0.30)[denissal@freebsd.org,denissale@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.173:from]; 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]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[denissal@freebsd.org,denissale@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: Thu, 02 Jul 2020 16:27:19 -0000 Hi everyone! I implemented the existing Linux driver routines and made the NetFPGA SUME work as a basic NIC: packet RX/TX currently works and the board forwards packets from/to the OS (almost certainly with some bugs to fix). Additionally, I made the driver more "FreeBSD-like", fixed some old but also newly introduced bugs, and worked on improving code quality and style. I also started to document and comment on the code. The TX now works by queuing the packets and sending them only when the FSM is idle so packets are no longer dropped if the driver is busy. The next step is improving the RX/TX and adapting the code for integration with Netmap. Project github with more details: https://github.com/denisSal/freebsd-sume Regards, Denis Salopek