From owner-freebsd-net@FreeBSD.ORG Mon Sep 8 15:54:37 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C72F29A for ; Mon, 8 Sep 2014 15:54:37 +0000 (UTC) Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) (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 5966F1084 for ; Mon, 8 Sep 2014 15:54:37 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id at20so5490502iec.22 for ; Mon, 08 Sep 2014 08:54:36 -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=Jmruc4JJ2dPg/s9MgQCiPU2MhYSiSv87M1uWgVviwxE=; b=uPi/mAaASKgiLgYFGpmKykRQsxQgevOMZ6RjwgKxPPDJB2VdnZoqthu1MRbcJozOWM 67ZZeMT64v0Knb9ia6FU34SvM5aMtFF1sOuW7aCGQGaxJM3w5TAFUTrNWrm3/xIZHSFo xqSIt74O6DBGn4SbJh31wUuCQerCupbZfa/62RzC6p1lPGcbTH6XibhIXVpuro/BvqII ePVndOEyoz+UG8X7phspxSL2Pw5tgOQFIUPWbKo+2y9Txpu1zi6whnp+FXUlyuY3yKVs kXIKQ6klZJAVu5wgRqQiPhUQTNbTYgHW0mHeSywVWJgfcF5SIO4SYMRKqEd4xlIAZ4UK zBFw== MIME-Version: 1.0 X-Received: by 10.50.88.98 with SMTP id bf2mr11107009igb.11.1410191676522; Mon, 08 Sep 2014 08:54:36 -0700 (PDT) Received: by 10.107.129.65 with HTTP; Mon, 8 Sep 2014 08:54:36 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Sep 2014 09:54:36 -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: Mon, 08 Sep 2014 15:54:37 -0000 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 source 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 nat= ive > 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) > -----------------------------------------+------------------------------- > --=20 David D=C3=ADaz Barquero Ingenier=C3=ADa en Computadores Tecnol=C3=B3gico de Costa Rica