]> git.proxmox.com Git - mirror_iproute2.git/commit - lib/bpf.c
{f,m}_bpf: make tail calls working
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 26 Nov 2015 14:38:42 +0000 (15:38 +0100)
committerStephen Hemminger <shemming@brocade.com>
Sun, 29 Nov 2015 19:55:16 +0000 (11:55 -0800)
commit910b543dcce52290ce723758e1d9bb436188a26b
treea5855f2b0b6f5c1cf3a5a70a0edc4feb9c4c7506
parentfece33c19563aeb6b9a00ca7a466093ae58e6158
{f,m}_bpf: make tail calls working

Now that we have the possibility of sharing maps, it's time we get the
ELF loader fully working with regards to tail calls. Since program array
maps are pinned, we can keep them finally alive. I've noticed two bugs
that are being fixed in bpf_fill_prog_arrays() with this patch. Example
code comes as follow-up.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
tc/tc_bpf.c