diff options
author | Jan Seiffert <kaffeemonster@googlemail.com> | 2012-03-30 05:24:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-03 18:01:41 -0400 |
commit | a998d4342337c82dacdc0897d30a9364de1576a1 (patch) | |
tree | 301294142ae65e4646281329737fa349190d7565 /drivers | |
parent | f03fb3f455c6c3a3dfcef6c7f2dcab104c813f4b (diff) | |
download | linux-stable-a998d4342337c82dacdc0897d30a9364de1576a1.tar.gz linux-stable-a998d4342337c82dacdc0897d30a9364de1576a1.tar.bz2 linux-stable-a998d4342337c82dacdc0897d30a9364de1576a1.zip |
bpf jit: Let the x86 jit handle negative offsets
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@googlemail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions