From owner-freebsd-net@FreeBSD.ORG Sat Jul 12 14:44:03 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 D30E7994 for ; Sat, 12 Jul 2014 14:44:03 +0000 (UTC) Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com [IPv6:2607:f8b0:400d:c04::22f]) (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 840012855 for ; Sat, 12 Jul 2014 14:44:03 +0000 (UTC) Received: by mail-qg0-f47.google.com with SMTP id q108so1945086qgd.20 for ; Sat, 12 Jul 2014 07:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=o/KExPvUWoHivgsGpKPX9yaBtScPaJ3kNegMACGPX+Y=; b=qQlYPJxWpALYkigGCoeCBffkma6XC78BogagdRxJ30niF8Niz6O3kvqlw0bChU4ITN ANDaJXF69NUdl/H+O/mdOyupJyShiafhaZS6NNFxps3Lf6NpZ0/Tth/ZuWh8UxblX6Cn ZwW3ydrnL784bVtqMycHlZnpc/K/Ux+Tzw8i2Ld5ppIjFBUEaVEEYwAz2xHCrWVlSR5E EXyJLw+O8PtNBnm8sO3FVL5pJG/xxmkE6f2981jUBLDQD8U3HMZKiJbsDvXmC13vr2Ux ceY5lzljd3doFeOb1NrrEjajPlo3mmeWkKe2KcYnu140de0opFOR55qGQJwKzEJ6vV5L puSg== X-Received: by 10.140.87.68 with SMTP id q62mr8060010qgd.21.1405176242658; Sat, 12 Jul 2014 07:44:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.74.69 with HTTP; Sat, 12 Jul 2014 07:43:22 -0700 (PDT) In-Reply-To: References: <20140614101523.GD22187@onelab2.iet.unipi.it> From: Carlos Ferreira Date: Sat, 12 Jul 2014 15:43:22 +0100 Message-ID: Subject: Re: netmap To: Luigi Rizzo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: "freebsd-net@freebsd.org" , Prashant Upadhyaya X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2014 14:44:03 -0000 I'm sorry, I made a mistake. The real_num_rx_queues field, with the 3.10 kernel which is currently being used with the OpenWRT trunk branch, is only defined when CONFIG_RPS flag is active. CONFIG_RPS is only active when CONFIG_SMP is active. This as changed (beyond 3.13 version) and the real_num_rx_queues field depends now on CONFIG_SYSFS field. On 12 July 2014 15:36, Carlos Ferreira wrote: > Ok it seems that Symmetric MultiProcessing is broken for the IXP4xx arch > when compiling the OpenWRT linux kernel. Since netmap requires SMP to be > active. Netmap uses the real_num_rx_queues field from the netdev_rx_queue > which requires CONFIG_SYSFS, which is active when CONFIG_SMP is active. > > I just posted at the OpenWRT development mailing list, requesting info an= d > also, contacted Ryan Erbstoesser at Gateworks to also request info. > > > On 12 July 2014 11:52, Carlos Ferreira wrote: > >> Ok,I solved that problem that I was having but now I have another one. >> For what I was able to determine, SMP is not supported for IXP4xx >> processors on OpenWRT. >> I'm able to compile it for x86, but not for IXP4xx, the CPU's that the >> SBC Cambria from Gateworks use. >> I'm still investigating if this is really the problem and if it is, if i= t >> is possible to overcome. >> >> I will try to keep regular updates on this situation. >> Carlos >> >> >> On 11 July 2014 22:54, Carlos Ferreira wrote: >> >>> OK, ignore what I said in the last e-mail. My Makefile is nor working >>> properly and I'm trying to figure out why. OpenWRT documentation for mo= dule >>> Makefiles creation is scarce and confuse... >>> >>> >>> On 11 July 2014 18:27, Carlos Ferreira wrote: >>> >>>> I'm building for OpenWRT (trunk) for the IXP4xx target. >>>> >>>> Attached goes the output for the compile attempt. Maybe I'm missing >>>> something very basic... >>>> >>>> >>>> On 11 July 2014 17:13, Luigi Rizzo wrote: >>>> >>>>> >>>>> >>>>> >>>>> On Fri, Jul 11, 2014 at 6:07 PM, Carlos Ferreira < >>>>> carlosmf.pt@gmail.com> wrote: >>>>> >>>>>> Luigi one question. Does netmap requires a processor with 64 bits? >>>>>> I'm having some trouble in compiling netmap, using the same Makefile= I used >>>>>> previously, but for an Intel IXP435 CPU (Gateworks Cambria). >>>>>> >>>>> >>>>> =E2=80=8Bit used to build and work on 32 bit archs but we have not tr= ied that >>>>> there i a while. >>>>> Hopefully it is just a matter of casts in printfs. >>>>> >>>>> which OS and netmap versions are you using ? >>>>> can you send me an error log ? >>>>> >>>>> cheers >>>>> luigi >>>>> =E2=80=8B >>>>> >>>>>> >>>>>> >>>> >>>> >>>> -- >>>> >>>> Carlos Miguel Ferreira >>>> Researcher at Telecommunications Institute >>>> Aveiro - Portugal >>>> Work E-mail - cmf@av.it.pt >>>> Skype & GTalk -> carlosmf.pt@gmail.com >>>> LinkedIn -> http://www.linkedin.com/in/carlosmferreira >>>> >>> >>> >>> >>> -- >>> >>> Carlos Miguel Ferreira >>> Researcher at Telecommunications Institute >>> Aveiro - Portugal >>> Work E-mail - cmf@av.it.pt >>> Skype & GTalk -> carlosmf.pt@gmail.com >>> LinkedIn -> http://www.linkedin.com/in/carlosmferreira >>> >> >> >> >> -- >> >> Carlos Miguel Ferreira >> Researcher at Telecommunications Institute >> Aveiro - Portugal >> Work E-mail - cmf@av.it.pt >> Skype & GTalk -> carlosmf.pt@gmail.com >> LinkedIn -> http://www.linkedin.com/in/carlosmferreira >> > > > > -- > > Carlos Miguel Ferreira > Researcher at Telecommunications Institute > Aveiro - Portugal > Work E-mail - cmf@av.it.pt > Skype & GTalk -> carlosmf.pt@gmail.com > LinkedIn -> http://www.linkedin.com/in/carlosmferreira > --=20 Carlos Miguel Ferreira Researcher at Telecommunications Institute Aveiro - Portugal Work E-mail - cmf@av.it.pt Skype & GTalk -> carlosmf.pt@gmail.com LinkedIn -> http://www.linkedin.com/in/carlosmferreira