From owner-soc-status@freebsd.org Mon May 28 20:28:05 2018 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61466F94B3C for ; Mon, 28 May 2018 20:28:05 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: from mail-io0-x232.google.com (mail-io0-x232.google.com [IPv6:2607:f8b0:4001:c06::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE1FC83458 for ; Mon, 28 May 2018 20:28:04 +0000 (UTC) (envelope-from duostefano93@gmail.com) Received: by mail-io0-x232.google.com with SMTP id g1-v6so15219234iob.2 for ; Mon, 28 May 2018 13:28:04 -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; bh=Qkhgsn8kEOmD7iO66c5WiQn/gYq71TllSujC91Jmq68=; b=CTAs1BnG1JUzan4BbE3LWe9XueCxPSchxyOOdUTZPx/y+EBQ2DDL9Ry+VmslqyytZG lYPzWCF0OelQIOTuqYBk1JU7TWmDX1zO0K/DUWxLzW6Pw2qLlcN5T948YN/X3GquziPz aba2mUDoEurTC7eWMQaXFL+m+YeItLPapLSComybYVSO+NIj85ZNRRwekmbIWv7rUVXv Yed7zwKq1rgOSw4FcLjVS40ZakgtYMP+JESdOqZFM71RYvDYuxvUKRcZ9bQYi/1v6jgd tAtk8+MRDbnAvbojXTMrSFz5kRuk4wqr2h9ibUxkQ0NO4McaUC+5FyUAscRfrg1jyKVy wp7Q== 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=Qkhgsn8kEOmD7iO66c5WiQn/gYq71TllSujC91Jmq68=; b=E3DkFsOjOA1cgiCIFLNVcOR0Mvs3sSY38WuMnBNA4d3eMzaxmfhHD3lM2FDKSI65R0 Z7m8uaIKeNsXDo66xjeGeh2COb5yfVYovMW4wDpZzKcF3LD8/K1jLt+km1BEcs4ZHoOa pOmrkMtDNB8DMgB96PMJXSnBNtEwNDwMfjvEG3a0oTQFyam+/N4aOQLPa+G2ce+Kljwp +hwnPHkjArLB+PNHf0inGU8shtkYEk5uFFKv4bVuU+9AGCvbFauNgKcUf/KfVKf12SBk 7CWMMWVQVfGWnEifan1Ziu7X6oot5jd+AM8FSL/W+T9oBaMblLMGAj3wMRhDS/FBkpFG C8kw== X-Gm-Message-State: ALKqPwdz4Mo3jaD8G6FxUaz6Am58pDnA1tesUlSbTNLlfmLNZL4LKwtq aOzXjO+x7Y8OGBfuvA/OJ3J92wOViT3JrMl2KMTw9jA9 X-Google-Smtp-Source: ADUXVKIZNeEV+F70rX+A5zsQajRDyA+mWRsK967i1REmHQ3EnLE9XhfhNk6bmjHVLQIJkXLGh5ZszBG6kqrwpMR2DAw= X-Received: by 2002:a6b:db15:: with SMTP id t21-v6mr11529521ioc.224.1527539284142; Mon, 28 May 2018 13:28:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:c44:0:0:0:0:0 with HTTP; Mon, 28 May 2018 13:28:03 -0700 (PDT) From: Stefano Duo Date: Mon, 28 May 2018 22:28:03 +0200 Message-ID: Subject: Extension to the netmap framework - Week 2 To: soc-status@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.26 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, 28 May 2018 20:28:05 -0000 Hi, during the second week i extended the vale_vlan kernel module. VLAN configuration can now be created (modified and read) through system calls on the device "/dev/vale_vlan". First a VLAN configuration must be selected though an ioctl(), which expects a "struct vlanreq_header". Then commands are issued to the configuration through a write(), which expects an array "struct vlan_conf_entry". An array of commands is considered atomic, therefore if one of them fails, the status of the configuration is rolled back. Finally the current configuration can be read though a read(), passing an array of "struct port". The data structures used by the interface between user and kernel space are defined in "net/vale_vlan_user.h". Project wiki: https://wiki.freebsd.org/SummerOfCode2018Projects/ExtensionsToNetmap SVN repository: https://svnweb.freebsd.org/socsvn/soc2018/sduo/ Stefano.