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 <bbla...@plumgrid.com> --- include/uapi/linux/bpf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 5b47ac3..e3c3b92 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -439,6 +439,7 @@ struct bpf_tunnel_key { enum xdp_action { XDP_DROP, XDP_PASS, + XDP_TX, }; /* user accessible metadata for XDP packet hook -- 2.8.2