Re: [PATCH bpf-next] samples/bpf: Decrement ttl in fib forwarding example

2018-05-16 Thread Daniel Borkmann
On 05/16/2018 01:20 AM, David Ahern wrote: > Only consider forwarding packets if ttl in received packet is > 1 and > decrement ttl before handing off to bpf_redirect_map. > > Signed-off-by: David Ahern Looks good, applied to bpf-next, thanks David!

Re: [PATCH bpf-next] samples/bpf: Decrement ttl in fib forwarding example

2018-05-16 Thread Y Song
On Tue, May 15, 2018 at 4:20 PM, David Ahern wrote: > Only consider forwarding packets if ttl in received packet is > 1 and > decrement ttl before handing off to bpf_redirect_map. > > Signed-off-by: David Ahern I did not test this patch, but it looks good to me with visual inspection. Acked-by:

[PATCH bpf-next] samples/bpf: Decrement ttl in fib forwarding example

2018-05-15 Thread David Ahern
Only consider forwarding packets if ttl in received packet is > 1 and decrement ttl before handing off to bpf_redirect_map. Signed-off-by: David Ahern --- samples/bpf/xdp_fwd_kern.c | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/sampl