]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: Sample xdp program implementing ip forward
authorChristina Jacob <Christina.Jacob@cavium.com>
Sun, 5 Nov 2017 03:22:30 +0000 (08:52 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 01:39:41 +0000 (10:39 +0900)
commitbe54f2090498cebbdbb37df7a6d66172be1c3da8
treed3a219cd42fd7500d3a874baf2aa57e2f55fbe6b
parente0fb44d92d8a9f8e2245951b0d682e373b270937
xdp: Sample xdp program implementing ip forward

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>
samples/bpf/Makefile
samples/bpf/xdp_router_ipv4_kern.c [new file with mode: 0644]
samples/bpf/xdp_router_ipv4_user.c [new file with mode: 0644]