[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120403.180236.324578658342931623.davem@davemloft.net>
Date: Tue, 03 Apr 2012 18:02:36 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: kaffeemonster@...glemail.com
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
eric.dumazet@...il.com
Subject: Re: [REGRESSION][PATCH V4 2/3] bpf jit: Let the x86 jit handle
negative offsets
From: Jan Seiffert <kaffeemonster@...glemail.com>
Date: Fri, 30 Mar 2012 17:24:05 +0200
> Now the helper function from filter.c for negative offsets is exported,
> it can be used it in the jit to handle negative offsets.
>
> First modify the asm load helper functions to handle:
> - know positive offsets
> - know negative offsets
> - any offset
>
> then the compiler can be modified to explicitly use these helper
> when appropriate.
>
> This fixes the case of a negative X register and allows to lift
> the restriction that bpf programs with negative offsets can't
> be jited.
>
> Signed-of-by: Jan Seiffert <kaffeemonster@...glemail.com>
Applied, but with trailing empty lines removed:
> diff --git a/arch/x86/net/bpf_jit.S b/arch/x86/net/bpf_jit.S
> index 6687022..2897d7f 100644
> --- a/arch/x86/net/bpf_jit.S
> +++ b/arch/x86/net/bpf_jit.S
> + ret
> +
There.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists