From owner-soc-status@freebsd.org Mon Jun 27 10:03:11 2016 Return-Path: Delivered-To: soc-status@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36EDAB81B49 for ; Mon, 27 Jun 2016 10:03:11 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 C48552198 for ; Mon, 27 Jun 2016 10:03:10 +0000 (UTC) (envelope-from y.iozzelli@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id a66so107465918wme.0 for ; Mon, 27 Jun 2016 03:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ZgWqckKHkaqB467HtNuq7OdyPsOZyaSVvy6HkdDuDJo=; b=eDxYYXgjVPZ46jhP2ryKTscwtouQsdIPs0q2FmKL2hIeA903EN/fT+Z5XR85ADygdP 7q1uUSuOotz8JPEn7vQOEbg3lsV2XHicBGCWMsUK5jkSobrrPZKdm1PTfNySNOAG7rxH HTW4m7qQOcQOsGr7u2zH8x1XVOZAATLsali4JBE8ksSwmlxX4hX1IKjzUlaeRTLHXyN+ 3y90R30LUoOh26NU5O315seJyQgWfgpNwnCa3I0pUsADEg1YRC9MR6wKjcnHEI3nGiVF 6i/2pQUjXz+Jc6rg/1aQDqgsAQExy68AKDFewscm+dq5OWbG5NYzViKoRAOJePtVcqN8 4FQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZgWqckKHkaqB467HtNuq7OdyPsOZyaSVvy6HkdDuDJo=; b=hyu/WNcqukfBhYZ+0zHdrHhLQ4gWJPB2byyxl/8MJX4VsbviBpn2GN2n54KNNTKVtO 25xdHgz6LRirLS5epIXwpP4AbKmN1RWIem7vpvAp6wX7ENBqjRirxq3WJSbfUN0aE0KS sHH1iXSbPZGo5s8JGUZLU3mjPJHLlz33Ty/vHcji//WTVM+Xgg5MLupzUO7MBXJVRfl3 K1XG8k62aeNytm+5wdIFFOzC4FzEJNHqzQ0V8GLnGxkX9Giof/+8VDbZAHEE0DDgTv3L 6/I5x16eiljLyqKoxXiQViyXAYp/af04Q8Wk2/jpHrWDeiUQA258YIdw5bRd3eIEqZzP 3mzg== X-Gm-Message-State: ALyK8tJKMJ1oSXF6xdnJF34fWHOjc9jWQQHOD4q42IhE6W7wFYMQKUHAoGMxoG/N5GIrgYBPhWJMUFLf4J/Y7A== X-Received: by 10.28.181.146 with SMTP id e140mr9222310wmf.38.1467021789387; Mon, 27 Jun 2016 03:03:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.212.136 with HTTP; Mon, 27 Jun 2016 03:03:08 -0700 (PDT) From: Yuri Iozzelli Date: Mon, 27 Jun 2016 12:03:08 +0200 Message-ID: Subject: High Performance P4 Software Switch - Week 5 To: soc-status@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.22 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, 27 Jun 2016 10:03:11 -0000 Hi Project summary ======================== In this project I would like to implement a modified version of the reference p4 (http://p4.org) switch on FreeBSD, which uses netmap for faster packet I/O: the goal would be reaching the 1 Mpps order-of-magnitude speed (current reference implementation is limited to 150 Kpps for a simple l2 switch with 2 hosts). Week 5 ========================= I improved the lock-free queue to support batching and modified the existing code to take advantage of it. I am also starting to implement a priority queue based on it. The simple target I am working on is complete and it reaches a throughput of 2 Mpps for the simplest p4 program, and a throughput of 650 Kpps for a more realistic one. Now I will focus to bring in more features, like packet replication and learning. Links: Wiki page: https://wiki.freebsd.org/SummerOfCode2016/HighPerformanceP4SoftwareSwitch#preview Code (gsoc-* branches): https://github.com/zarghul/behavioral-model Regards, Yuri Iozzelli