]> git.karo-electronics.de Git - linux-beck.git/commit
bpf: enable direct packet data write for xdp progs
authorBrenden Blanco <bblanco@plumgrid.com>
Tue, 19 Jul 2016 19:16:56 +0000 (12:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jul 2016 04:46:33 +0000 (21:46 -0700)
commit4acf6c0b84c91243c705303cd9ff16421914150d
tree1fc015113abd682af506b436bb3788d1cc28a760
parent9ecc2d86171adf23796133c89610987a14624875
bpf: enable direct packet data write for xdp progs

For forwarding to be effective, XDP programs should be allowed to
rewrite packet data.

This requires that the drivers supporting XDP must all map the packet
memory as TODEVICE or BIDIRECTIONAL before invoking the program.

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