[PATCH] ARM: net: JIT compiler for packet filters

Mircea Gherzan mgherzan at gmail.com
Wed Dec 21 09:36:03 EST 2011


On Mon, Dec 19, 2011 at 12:31:19PM -0500, Nicolas Pitre wrote:
> On Sun, 18 Dec 2011, Rob Herring wrote:
> 
> > On 12/18/2011 05:49 PM, Mircea Gherzan wrote:
> > > +	select HAVE_BPF_JIT if (!THUMB2_KERNEL && AEABI)
> > 
> > No thumb2. That's a shame...
> 
> I think this would be more sensible to make a Thumb2 kernel properly 
> interoperate with this and keep the JIT code simple rather than having 
> to duplicate all this for Thumb2.

The JITed code interoperates properly with a Thumb2 kernel as of v3 of
the patch.

> > BLX is v5+ only. It probably fine to make the JIT v5+ only. There's
> > probably not much v4 h/w that would use this.
> 
> While you might be right, I don't think it is that big a cost to make 
> this support ARMv4 too.  In fact, if slow ARMv4 systems are still 
> routing packets out there, they are likely to see a huge benefit from 
> this.

This has also been addressed in v3.

Mircea



More information about the linux-arm-kernel mailing list