From owner-freebsd-net@FreeBSD.ORG Wed May 20 15:18:38 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9F974413 for ; Wed, 20 May 2015 15:18:38 +0000 (UTC) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) (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 0EFF616BE for ; Wed, 20 May 2015 15:18:38 +0000 (UTC) Received: by labbd9 with SMTP id bd9so79558429lab.2 for ; Wed, 20 May 2015 08:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Vz0QBtTal2TwaQB7ukoNRv/gI7gZF/Zrh05JpzBDwPk=; b=UWP+EuFdGqiq24+CIeOOlX/VhVWVk89gJhZkAymMVNdQshmTe293zdFNqc+378IfuR EKalQCNHYe1MNWhbzLGo0qqW7Y34kN4aTS6eL5177P9F+jfr6vzh3tb6gIetkzsrGGjv 9fErzDyqPy0MvsQdsHQXpSDDDEHlQK39UP0Du5HxVj/eVPvfvboR9Tq3WhtYYXcdB9FL +rysFP0U8OB/F02SH5WG9Cy5dM4+8IV0ouYNmDds2Ep9hvhEnAJ/sm9/bD3TYesE53b5 ygYZkqorYd2eF7FEUk97Kz/Q0mC5KK7kudJZtAsq8VASvmLaJL8tbC5lrXJBLtK+ba9z kx3w== MIME-Version: 1.0 X-Received: by 10.112.173.167 with SMTP id bl7mr26179489lbc.83.1432135116107; Wed, 20 May 2015 08:18:36 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.20.232 with HTTP; Wed, 20 May 2015 08:18:36 -0700 (PDT) In-Reply-To: <555C9F30.8070405@selasky.org> References: <3010CFE2-66B7-416B-92DE-C1B669CC33BE@colorado.edu> <555C9F30.8070405@selasky.org> Date: Wed, 20 May 2015 17:18:36 +0200 X-Google-Sender-Auth: 55nnFpCyMR0uMrHPvvfxMRdSWHo Message-ID: Subject: Re: netmap and mlx4 driver status (linux) From: Luigi Rizzo To: Hans Petter Selasky Cc: Blake Caldwell , "freebsd-net@freebsd.org" , Oded Shanoon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 15:18:38 -0000 hi all, the mlx4 netmap patch (for linux only) was something i did long ago when i had some mellanox hardware available, but no documentation so i had to resort to interpreting what the linux driver did. At the time i had the following performance (on PCIe v2 bus): 10G ports: tx/rx at about 7 Mpps with 64 byte packets could saturate the link with 192 or 256 byte packets 40G ports: tx/rx at about 11 Mpps with 64 byte packets max 28 Gbit/s even with 1500 byte frames I don't know if the limited performance was due to bus, firmware or lack of documentation, anyways this is not something i can or want to deal with. My understanding is that Mellanox does not release programming documentation, so the only way to have native netmap support for that card would be to have Mellanox work on that and provide a suitable patch. I do not expect more than a week's work (the typical extra code in each driver is about 500 lines, and very simple) for someone with access to documentation. Also, the patch for FreeBSD and Linux is typically very similar so once we have a driver for one, the other would be trivial. It would be of course great to add Mellanox to the list of devices with native netmap support, together with Chelsio and Intel. Perhaps Hans (who may have contacts) can talk to the right people and figure out. On my side, I am happy to give directions on what needs to be done and import any patch that should be made available. cheers luigi On Wed, May 20, 2015 at 4:50 PM, Hans Petter Selasky wrote: > On 05/20/15 16:13, Blake Caldwell wrote: > >> Hello, >> >> I noticed that the mlx4_en patch for netmap is LINUX/wip-patches, so they >> are not enabled in the normal build process. I'm curious about the status >> of mlx4 support? >> >> If additional work to the patches is needed, any details as to what the >> issues were. >> >> Any info would be great! Thanks in advance! >> >> > Hi Blake, > > The MLX4 driver is being actively maintained in -stable and -current. > Regarding netmap support for the FreeBSD MLX4 en driver, I'm not sure. > Maybe Oded knows, CC'ed? Do you have a link for the patch you are referring? > > This there any particular use-case you are interested in? > > --HPS > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------