aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-03-20 19:10:50 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-20 19:10:50 -0400
commitf6877fcf229b4e3d396cbd5199e040b4ea1362eb (patch)
tree0fb121bb44e532307c10a3b7e4154f60381ebbbc /include/net
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
parentact_bpf: add initial eBPF support for actions (diff)
downloadlinux-f6877fcf229b4e3d396cbd5199e040b4ea1362eb.tar.gz
linux-f6877fcf229b4e3d396cbd5199e040b4ea1362eb.zip
Merge branch 'ebpf-next'
Daniel Borkmann says: ==================== This set adds native eBPF support also to act_bpf and thus covers tc with eBPF in the classifier *and* action part. A link to iproute2 preview has been provided in patch 2 and the code will be pushed out after Stephen has processed the classifier part and helper bits for tc. This set depends on ced585c83b27 ("act_bpf: allow non-default TC_ACT opcodes as BPF exec outcome"), so a net into net-next merge would be required first. Hope that's fine by you, Dave. ;) ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/tc_act/tc_bpf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/tc_act/tc_bpf.h b/include/net/tc_act/tc_bpf.h
index 86a070ffc930..a152e9858b2c 100644
--- a/include/net/tc_act/tc_bpf.h
+++ b/include/net/tc_act/tc_bpf.h
@@ -16,8 +16,12 @@
struct tcf_bpf {
struct tcf_common common;
struct bpf_prog *filter;
+ union {
+ u32 bpf_fd;
+ u16 bpf_num_ops;
+ };
struct sock_filter *bpf_ops;
- u16 bpf_num_ops;
+ const char *bpf_name;
};
#define to_bpf(a) \
container_of(a->priv, struct tcf_bpf, common)