From owner-freebsd-net@FreeBSD.ORG Sat Jul 12 14:37:32 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 E9DBF7C1 for ; Sat, 12 Jul 2014 14:37:32 +0000 (UTC) Received: from mail-qc0-x232.google.com (mail-qc0-x232.google.com [IPv6:2607:f8b0:400d:c01::232]) (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 9C57D27B2 for ; Sat, 12 Jul 2014 14:37:32 +0000 (UTC) Received: by mail-qc0-f178.google.com with SMTP id x3so75361qcv.37 for ; Sat, 12 Jul 2014 07:37:31 -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=Se7wM9dAn9Z25Yw5vc0zo7117P1mukqyWuHd1edOfuw=; b=OPTlkqnvkwcOv5xlymQWk4L60EkuOP/yqWT83dGdIPJr5ZRZriIDbOpUtMijQfaLYA zHsKp/TcEPwW96/3HUAwu4I0kYQk+shaFh9z80TCuX0m02yzw2/s3t64WHbwSSqseKZZ PUu7hslbJBiTg9B2XbhNV13HO22jDXvtN8aAM5yhsEnpSFZI91wZ2GBbdkP9ramSXUUb spZvypTKe9WtJgtsAWBKhVLxlIjLzTpeJq+XSins9Nx3/HIEAgGFV6NLpk0xUkRNvzQS N65Cx7PynpmL08vcyaQxpuGnc5BRhpqaVuaRwag5WTcv28dfnwA1ZNjCvjaTIYsOpK0P Dnfg== X-Received: by 10.140.85.101 with SMTP id m92mr8481220qgd.26.1405175851788; Sat, 12 Jul 2014 07:37:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.74.69 with HTTP; Sat, 12 Jul 2014 07:36:51 -0700 (PDT) In-Reply-To: References: <20140614101523.GD22187@onelab2.iet.unipi.it> From: Carlos Ferreira Date: Sat, 12 Jul 2014 15:36:51 +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:37:33 -0000 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 and 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. Fo= r > 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 SB= C > Cambria from Gateworks use. > I'm still investigating if this is really the problem and if it is, if it > 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 mod= ule >> 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 >>> > 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 us= ed >>>>> 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 tri= ed 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 > --=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