• William Tu's avatar
    samples/bpf: Add tunnel set/get tests. · 6afb1e28
    William Tu authored
    The patch creates sample code exercising bpf_skb_{set,get}_tunnel_key,
    and bpf_skb_{set,get}_tunnel_opt for GRE, VXLAN, and GENEVE.  A native
    tunnel device is created in a namespace to interact with a lwtunnel
    device out of the namespace, with metadata enabled.  The bpf_skb_set_*
    program is attached to tc egress and bpf_skb_get_* is attached to egress
    qdisc.  A ping between two tunnels is used to verify correctness and
    the result of bpf_skb_get_* printed by bpf_trace_printk.
    Signed-off-by: 's avatarWilliam Tu <u9012063@gmail.com>
    Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
    6afb1e28
Name
Last commit
Last update
..
bpf Loading commit data...
configfs Loading commit data...
connector Loading commit data...
hidraw Loading commit data...
hw_breakpoint Loading commit data...
kdb Loading commit data...
kfifo Loading commit data...
kobject Loading commit data...
kprobes Loading commit data...
livepatch Loading commit data...
pktgen Loading commit data...
rpmsg Loading commit data...
seccomp Loading commit data...
trace_events Loading commit data...
trace_printk Loading commit data...
uhid Loading commit data...
v4l Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...