summaryrefslogtreecommitdiff
path: root/packages
ModeNameSize
d---------CVS105logplain
d---------MSDOS140logplain
-rw-r--r--cscope.spec1842logplain
d---------uw7143logplain
c084d076a28daa8096'>patch) treee772f55d041956a3e07a487b48b42df8a0b830bf /samples parentea3349a03519dcd4f32d949cd80ab995623dc5ac (diff)
bpf: xdp: Add XDP example for head adjustment
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 <ast@kernel.org> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')