Skip to content

Commit

Permalink
bpf: add XDP_TX xdp_action for direct forwarding
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brenden Blanco authored and davem330 committed Jul 20, 2016
1 parent d576acf commit 6ce96ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/linux/bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ enum xdp_action {
XDP_ABORTED = 0,
XDP_DROP,
XDP_PASS,
XDP_TX,
};

/* user accessible metadata for XDP packet hook
Expand Down

0 comments on commit 6ce96ca

Please sign in to comment.