From owner-freebsd-current@FreeBSD.ORG Fri Nov 4 20:33:59 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5105D1065672 for ; Fri, 4 Nov 2011 20:33:59 +0000 (UTC) (envelope-from archycho@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0B0938FC17 for ; Fri, 4 Nov 2011 20:33:58 +0000 (UTC) Received: by vcbfo14 with SMTP id fo14so2346850vcb.13 for ; Fri, 04 Nov 2011 13:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tzA2eoVmDL9Pcuaxsp+wrZl0IhyX0LuRGmx+u/OW544=; b=P2TVC0r1s0+9InBomqiOgFgCSMSJHLBwjdl4l7YHZYd1Dj5MERsmB22u9+bCBBOXyt P3dAt4+3XnSvfIiWKawcJ+LbNoVC5mHbtkQMqkaPGyfyRy0HLXou64twuPr4Vjxbw9Z8 /zk5/O0ROtPK5MV0kq7m/8ujsfB8JqWi8goyw= MIME-Version: 1.0 Received: by 10.52.97.35 with SMTP id dx3mr16444123vdb.2.1320438838257; Fri, 04 Nov 2011 13:33:58 -0700 (PDT) Received: by 10.52.158.72 with HTTP; Fri, 4 Nov 2011 13:33:58 -0700 (PDT) In-Reply-To: References: Date: Sat, 5 Nov 2011 04:33:58 +0800 Message-ID: From: Archy Cho To: Jack Vogel , freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Netmap for routers (em0 device) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 20:33:59 -0000 With NETMAP patch I know there has no errors for default. source from info.iet.unipi.it/~luigi/*netmap*/ thank you. 2011/11/5 Archy Cho > With NETMAP patch > I know there has no errors for default. > > > 2011/11/5 Jack Vogel > >> I looked at the if_em.c in a untouched 8.2 machine, there is no 'j' at >> line 4012, >> furthermore, hundreds of users of 8.2 have compiled the em driver without >> errors, >> the release would not have happened with a broken em compile, the GENERIC >> kernel depends on it. >> >> .... SO, either the source is modified, or your environment is modified?? >> >> Jack >> >> >> >> On Fri, Nov 4, 2011 at 12:47 PM, Archy Cho wrote: >> >>> undefined 'j' appears on FreeBSD 8.2 release ( both i386 and amd64 >>> tested ), >>> I could compile netmap to a 9.0-RC-1 box with disabling re/bge. >>> >>> 2011/11/5 Jack Vogel >>> >>>> What version of the code is this, em certainly compiles in 8.2, and if >>>> you mean >>>> the code from HEAD or 9.0 I also don't see an undefined 'j'?? >>>> >>>> Jack >>>> >>>> >>>> On Fri, Nov 4, 2011 at 9:06 AM, Archy Cho wrote: >>>> >>>>> Hello >>>>> >>>>> I am very happy to see freebsd could have such network performance with >>>>> netmap , >>>>> since I am currently using freebsd as core routers instead of cisco. >>>>> >>>>> I tried to re-compile the freebsd 8.2 kernel to test , >>>>> however , I could not complete the task ( both i386 and amd64 ), >>>>> I could only success at 9.0-RC-1. >>>>> >>>>> Here is my task and error message, >>>>> >>>>> cp /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/Netmap-Router >>>>> echo "device netmap" >> /usr/src/sys/i386/conf/Netmap-Router >>>>> cd /tmp/netmap/sys/ >>>>> cp -R * /usr/src/sys/ >>>>> cd /usr/src/ >>>>> patch -p < /tmp/netmap/head-netmap.diff >>>>> echo "WITHOUT_MODULES = bge re igb" >> /etc/make.conf >>>>> make buildkernel KERNCONF=Netmap-Router >>>>> make installkernel KERNCONF=Netmap-Router >>>>> >>>>> -Werror ../../../dev/e1000/if_em.c -I../../../dev/e1000 >>>>> ../../../dev/e1000/if_em.c: In function 'em_setup_receive_ring': >>>>> ../../../dev/e1000/if_em.c:4012: error: 'j' undeclared (first use in >>>>> this >>>>> function) >>>>> ../../../dev/e1000/if_em.c:4012: error: (Each undeclared identifier is >>>>> reported only once >>>>> ../../../dev/e1000/if_em.c:4012: error: for each function it appears >>>>> in.) >>>>> *** Error code 1 >>>>> >>>>> Stop in /usr/src/sys/i386/compile/Netmap-Router >>>>> >>>>> >>>>> Any hint of error message ? >>>>> >>>>> More questions , >>>>> I seldom facing DDOS , whatever using polling or not , >>>>> 1Gbps link with 64bytes packet will cause CPU 100% , >>>>> if a freebsd box compile with netmap , >>>>> could it have performance boost of routed / ipfw / pf ? >>>>> _______________________________________________ >>>>> freebsd-current@freebsd.org mailing list >>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-current >>>>> To unsubscribe, send any mail to " >>>>> freebsd-current-unsubscribe@freebsd.org" >>>>> >>>> >>>> >>> >> >