On Thu, Apr 24, 2014 at 05:31:14PM +0100, Paul Burton wrote: > On Thu, Apr 24, 2014 at 03:50:13PM +0100, Markos Chandras wrote: > > diff --git a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c > > new file mode 100644 > > index 0000000..864e5b7 > > --- /dev/null > > +++ b/arch/mips/net/bpf_jit.c > > ... cut ... > > > + off = offsetof(struct sk_buff, protocol); > > + emit_half_load(r_A, r_skb, off, ctx); > > +#ifdef CONFIG_CPU_LITTLE_ENDIAN > > + /* This needs little endian fixup */ > > + if (cpu_has_mips_r1) { > > Doesn't cpu_has_mips_r1 cover everything >= r1? ie. everything will now > take this path, including systems >= r2. Don't you want the inverse > (!cpu_has_mips_r2) instead? > > Paul Hi Paul, Yes you are right. I will fix it and submit a new version. -- markos