Re: [bpf-next v3 9/9] samples/bpf: Add example of ipv4 and ipv6 forwarding in XDP

2018-05-10 Thread Jesper Dangaard Brouer
On Wed, 9 May 2018 20:34:27 -0700 David Ahern wrote: > Simple example of fast-path forwarding. It has a serious flaw > in not verifying the egress device index supports XDP forwarding. > If the egress device does not packets are dropped. > > Take this only as a simple example of fast-path forwa

[bpf-next v3 9/9] samples/bpf: Add example of ipv4 and ipv6 forwarding in XDP

2018-05-09 Thread David Ahern
Simple example of fast-path forwarding. It has a serious flaw in not verifying the egress device index supports XDP forwarding. If the egress device does not packets are dropped. Take this only as a simple example of fast-path forwarding. Signed-off-by: David Ahern Acked-by: David S. Miller ---