Re: [PATCH iproute2 -next 1/5] {f,m}_bpf: make tail calls working

2015-11-26 Thread Daniel Borkmann
On 11/26/2015 02:10 PM, Sergei Shtylyov wrote: [...] Isn't just *return* i; simpler? That way, you don't need 'ret' at all. Okay, sure, fixed. Thanks, Daniel -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majo

Re: [PATCH iproute2 -next 1/5] {f,m}_bpf: make tail calls working

2015-11-26 Thread Sergei Shtylyov
Hello. On 11/26/2015 3:58 PM, Daniel Borkmann wrote: 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

[PATCH iproute2 -next 1/5] {f,m}_bpf: make tail calls working

2015-11-26 Thread Daniel Borkmann
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 a