On Sat, Oct 19, 2019 at 2:37 AM Farid Zakaria <farid.m.zakaria@xxxxxxxxx> wrote: > > Hi, > > I just wanted to share a code sample I put together which does > MPLSinIP encap/decap via clasct (not xdp). > > https://github.com/fzakaria/ebpf-mpls-encap-decap > > I know there's quite a few samples in the Linux source tree but I > found them lacking in terms of comments for someone new to the new > space. > (They were more geared at demonstrating a particular feature > specifically rather than simply instructional) > > Learning & using ebpf for a project at work in a similar capacity > (encap/decap) has been a joy/fun to work with. Thanks for sharing. I think we can create new bpf_examples_and_links.rst file in Documentation/bpf/ with links for various repos, samples, examples, etc Like yours, cilium, cloudflare, Jesper's docs, etc. At least from kernel tree all the places will be reachable.