summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/bpf.h
diff options
context:
space:
mode:
authorBrenden Blanco2016-07-19 21:16:53 +0200
committerDavid S. Miller2016-07-20 06:46:32 +0200
commit6ce96ca348a9e949f8c43f4d3e98db367d93cffd (patch)
treefbe198393b4f35b91e325b4c3c2685479d4399ff /include/uapi/linux/bpf.h
parentnet/mlx4_en: add page recycle to prepare rx ring for tx support (diff)
downloadkernel-qcow2-linux-6ce96ca348a9e949f8c43f4d3e98db367d93cffd.tar.gz
kernel-qcow2-linux-6ce96ca348a9e949f8c43f4d3e98db367d93cffd.tar.xz
kernel-qcow2-linux-6ce96ca348a9e949f8c43f4d3e98db367d93cffd.zip
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>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r--include/uapi/linux/bpf.h1
1 files changed, 1 insertions, 0 deletions
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