From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward10l.mail.yandex.net (forward10l.mail.yandex.net [84.201.143.143]) by dpdk.org (Postfix) with ESMTP id EF567B368 for ; Tue, 9 Sep 2014 23:23:04 +0200 (CEST) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward10l.mail.yandex.net (Yandex) with ESMTP id 2CD7EBA0F2E; Wed, 10 Sep 2014 01:28:10 +0400 (MSK) Received: from smtp13.mail.yandex.net (localhost [127.0.0.1]) by smtp13.mail.yandex.net (Yandex) with ESMTP id 946E3E40170; Wed, 10 Sep 2014 01:28:09 +0400 (MSK) Received: from catv-89-132-201-195.catv.broadband.hu (catv-89-132-201-195.catv.broadband.hu [89.132.201.195]) by smtp13.mail.yandex.net (nwsmtp/Yandex) with ESMTPA id qJvGKMeBdQ-S7me1Tvw; Wed, 10 Sep 2014 01:28:07 +0400 X-Yandex-Uniq: acdfc27a-3c5d-434d-b467-8be0a5e178fb DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1410298089; bh=qnXS1KAHyihiiaS/+I0lR/7qjOmMDbvqrXcdfyaO7mI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=QL/xWCG60DQcitrxBeLmJ0bIotZS+KF4hJEW5YzV3PFAXq3fgGBHkzKDdlUXqd2cP 6Sk2jYz9W6CxfsMCzlxvEU/nY3pWSkpyRY1n62SOjIAEIa+WIq8VsApE56u7hFBt3r KbcqtauTj6D+CtOjo+3S8ICvTc/q1bOO3U5KokeM= Authentication-Results: smtp13.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Tue, 9 Sep 2014 22:30:01 +0100 From: Alexander Nasonov To: Matthew Hall Message-ID: <20140909213001.GA6574@neva> References: <4a71bb41.1307.14857e341d5.Coremail.zimeiw@163.com> <20140909062016.GA7050@mhcomputing.net> <20140909065852.GB7240@mhcomputing.net> <20140909121659.GB11499@neva> <20140909205114.GC11510@mhcomputing.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140909205114.GC11510@mhcomputing.net> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] TCP/IP stack for DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 21:23:05 -0000 Matthew Hall wrote: > The pflua guys made a user-space copy of Linux BPF JIT. I'm planning to use > that because it was almost as fast as pflua with a lot fewer usage headaches > and dependencies. Ah, I see. > I'm making an MIT licensed app... so it isn't an issue for me personally if > there is some GPL2 Linux code present. I don't think anybody made a non-rump > version of the BSD one yet or I'd use that... I'm trying not to stray too far > from the app's original purposes until it has some working features present. sys/net/bpfjit.c in NetBSD should be very easy to adapt to Linux. I was often testing it on Linux in userspace (without mbuf support). At the moment, I'm only allowed to work on some NetBSD projects and I can't adapt bpfjit to anything outside of NetBSD but when I last compiled bpfjit on Linux, it took me about a minute to fix compilation. Please try github version, it's not up-to-date but it worked on Linux: https://github.com/alnsn/bpfjit Alex