summaryrefslogtreecommitdiff
path: root/samples/bpf/xdp_router_ipv4_kern.c
AgeCommit message (Collapse)AuthorFilesLines
2017-11-08xdp: Sample xdp program implementing ip forwardChristina Jacob1-0/+186
Implements port to port forwarding with route table and arp table lookup for ipv4 packets using bpf_redirect helper function and lpm_trie map. Signed-off-by: Christina Jacob <Christina.Jacob@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>