bpf: add XDP_TX xdp_action for direct forwarding
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 19 Jul 2016 19:16:53 +0000 (12:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 04:46:32 +0000 (21:46 -0700)
commit6ce96ca348a9e949f8c43f4d3e98db367d93cffd
treefbe198393b4f35b91e325b4c3c2685479d4399ff
parentd576acf0a22890cf3f8f7a9b035f1558077f6770
bpf: add XDP_TX xdp_action for direct forwarding

XDP enabled drivers must transmit received packets back out on the same
port they were received on when a program returns this action.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/bpf.h