From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Nasonov Subject: Re: TCP/IP stack for DPDK Date: Tue, 9 Sep 2014 22:30:01 +0100 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 Cc: "dev-VfR2kkLFssw@public.gmane.org" To: Matthew Hall Return-path: Content-Disposition: inline In-Reply-To: <20140909205114.GC11510-Hv3ogNYU3JfZZajBQzqCxQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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