From owner-freebsd-net@FreeBSD.ORG Thu Sep 11 18:17:53 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF33B708 for ; Thu, 11 Sep 2014 18:17:53 +0000 (UTC) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A8D4D0 for ; Thu, 11 Sep 2014 18:17:53 +0000 (UTC) Received: by mail-ig0-f171.google.com with SMTP id r10so1439279igi.16 for ; Thu, 11 Sep 2014 11:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=oXIPGsw60ToNko8rCZgV/hmdrZjvOeXVW8rM95gNMMo=; b=Zr9NZf3uvJznuIYjRs5S+4mh8mnj3Oq3n+ueFyQfrOezq+3zsJY/qEnMzRFsM9miHu p2Fj0J03mW7d/1ZHGD9qFs/HhNvadPG7DIQmzML+mt3yolgOP4aSD1vDJcEqrvaH7If3 JTgHe56x/oj+9m9R0VA5CenN3Sv6vAgQ/s7cIOYGSVuZeG91I8cjC8/QitgInwWJwqZ6 d283s8Z7cCgWtuLvE6IcBl8LqW7hLbEp9je1c2DBiS7Lpaw5+n/0Y8ZZaZUAkKSC3y0Q b7if1NDSIIItJDE9yrxx2RDO5vZ5UqAV4H+AaHnDE45KO5GlLcyAwGD9zcDSLKrEs0vJ cVKA== MIME-Version: 1.0 X-Received: by 10.50.41.8 with SMTP id b8mr4815955igl.11.1410459472873; Thu, 11 Sep 2014 11:17:52 -0700 (PDT) Received: by 10.107.8.132 with HTTP; Thu, 11 Sep 2014 11:17:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Sep 2014 12:17:52 -0600 Message-ID: Subject: Re: help porting netmap to new driver From: David To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2014 18:17:53 -0000 I was able to work this around. The problem was in the driver. Now I start working on customizing the driver to use netmap optimized regards 2014-09-08 9:54 GMT-06:00 David : > Hi > > Sorry for the late response, I'll be using an ARM processor for a 1G link= . > > My first issue came when doing what you suggested, and try the "emulated > netmap mode". I need to cross compile the code from my x86, which I think= I > did correctly by setting up my arm toolchain and passing the kernel sourc= e > when doing the "make". > > Now when I run the pkt-gen example I get : > > [ 57.602575] Unable to handle kernel paging request at virtual address > f143ca04 > [ 57.609740] pgd =3D 894c4000 > [ 57.612420] [f143ca04] *pgd=3D00000000 > [ 57.615973] Internal error: Oops: 5 [#1] PREEMPT SMP ARM > > Where I'm stuck since a while ago trying to figure it out. > > regards > > 2014-08-27 16:23 GMT-06:00 Luigi Rizzo : > > >> >> >> On Wed, Aug 27, 2014 at 3:18 PM, David wrote: >> >>> Hi, >>> >>> I'm needing to use netmap on a custom driver, I don't understand the >>> content of the functions I need to implement and that are detailed on >>> "PORTING" file. >>> >>> >> =E2=80=8Bsometimes (often, actually) the hw has bottlenecks that make na= tive >> netmap mode almost useless. >> =E2=80=8BOne thing you could try is the "emulated netmap mode" which >> is used by default=E2=80=8B if the driver has no native support. >> This is in the code on code.google.com/p/netmap/ , >> the branch "next" (which is basically the code now in FreeBSD) >> has some fixes for that specific feature >> >> cheers >> luigi >> >> >> can someone give a hand to understand it better? >>> >>> regards >>> >>> -- >>> David D=C3=ADaz Barquero >>> >>> Ingenier=C3=ADa en Computadores >>> Tecnol=C3=B3gico de Costa Rica >>> _______________________________________________ >>> 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-2211611 . via Diotisalvi 2 >> Mobile +39-338-6809875 . 56122 PISA (Italy) >> -----------------------------------------+------------------------------= - >> > > > > -- > David D=C3=ADaz Barquero > > Ingenier=C3=ADa en Computadores > Tecnol=C3=B3gico de Costa Rica > --=20 David D=C3=ADaz Barquero Ingenier=C3=ADa en Computadores Tecnol=C3=B3gico de Costa Rica