Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / net / tc_act / tc_bpf.h
blob5897162c605f1682d292433985ba177d63a6c079
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us>
4 */
6 #ifndef __NET_TC_BPF_H
7 #define __NET_TC_BPF_H
9 #include <linux/filter.h>
10 #include <net/act_api.h>
12 struct tcf_bpf {
13 struct tc_action common;
14 struct bpf_prog __rcu *filter;
15 union {
16 u32 bpf_fd;
17 u16 bpf_num_ops;
19 struct sock_filter *bpf_ops;
20 const char *bpf_name;
22 #define to_bpf(a) ((struct tcf_bpf *)a)
24 #endif /* __NET_TC_BPF_H */