From: Brenden Blanco Date: Tue, 19 Jul 2016 19:16:53 +0000 (-0700) Subject: bpf: add XDP_TX xdp_action for direct forwarding X-Git-Tag: MMI-PSA29.97-13-9~7505^2~64^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ce96ca348a9e949f8c43f4d3e98db367d93cffd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller --- diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index a51786566c2f..2b7076f5b5ad 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -449,6 +449,7 @@ enum xdp_action { XDP_ABORTED = 0, XDP_DROP, XDP_PASS, + XDP_TX, }; /* user accessible metadata for XDP packet hook