]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: enable event output helper also for xdp types
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 17 Aug 2016 23:00:40 +0000 (01:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 06:38:16 +0000 (23:38 -0700)
commitfbecbd363da4bb5edfd4ad78655754639c8d1d67
tree02ec053515e7262d2be7fa73dee1cbfc54522c06
parentfebc4a052e11d80de328525de3304236faf2e40b
bpf: enable event output helper also for xdp types

Follow-up to c9a1832b66cb ("bpf: avoid stack copy and use skb ctx for
event output") for also adding the event output helper for XDP typed
programs. The event output helper has been very useful in particular for
debugging or event notification purposes, since it's much faster and
flexible than regular trace printk due to programmatically being able to
attach meta data. Same flags structure applies as with tc BPF programs.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c