21 Jan, 2017

1 commit

  • Fix build errors for samples/bpf xdp_tx_iptunnel and tc_l2_redirect,
    when dynamic debugging is enabled (CONFIG_DYNAMIC_DEBUG) by defining a
    fake KBUILD_MODNAME.

    Just like Daniel Borkmann fixed other samples/bpf in commit
    96a8eb1eeed2 ("bpf: fix samples to add fake KBUILD_MODNAME").

    Fixes: 12d8bb64e3f6 ("bpf: xdp: Add XDP example for head adjustment")
    Fixes: 90e02896f1a4 ("bpf: Add test for bpf_redirect to ipip/ip6tnl")
    Signed-off-by: Jesper Dangaard Brouer
    Signed-off-by: David S. Miller

    Jesper Dangaard Brouer
     

09 Dec, 2016

1 commit

  • The XDP prog checks if the incoming packet matches any VIP:PORT
    combination in the BPF hashmap. If it is, it will encapsulate
    the packet with a IPv4/v6 header as instructed by the value of
    the BPF hashmap and then XDP_TX it out.

    The VIP:PORT -> IP-Encap-Info can be specified by the cmd args
    of the user prog.

    Acked-by: Alexei Starovoitov
    Signed-off-by: Martin KaFai Lau
    Signed-off-by: David S. Miller

    Martin KaFai Lau