[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170421.124640.1134810340055330244.davem@davemloft.net>
Date: Fri, 21 Apr 2017 12:46:40 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: daniel@...earbox.net
Cc: sparclinux@...r.kernel.org, netdev@...r.kernel.org, ast@...nel.org
Subject: Re: [PATCH RFC] sparc64: eBPF JIT
From: Daniel Borkmann <daniel@...earbox.net>
Date: Mon, 17 Apr 2017 20:44:35 +0200
> There is samples/bpf/sockex3_kern.c, which exercises it. To
> run it, it would be (clang/llvm needed due to BPF backend not
> available in gcc):
>
> # cd samples/bpf
> # make
> # ./sockex3
> IP src.port -> dst.port bytes packets
> 127.0.0.1.12865 -> 127.0.0.1.49711 148 2
> 127.0.0.1.49711 -> 127.0.0.1.12865 108 2
> [...]
>
> Inside parse_eth_proto(), it will do tail calls based on the
> eth protocol. Over time, we'll move such C based tests over to
> tools/testing/selftests/bpf/.
Ok, after a lot of work setting up an LLVM/CLANG environment and other
things, I implemented tail call support and got this working.
Thanks for the pointers.
Powered by blists - more mailing lists