Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[deliverable/linux.git] / include / net / tc_act / tc_bpf.h
CommitLineData
d23b8ad8
JP
1/*
2 * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 */
9
10#ifndef __NET_TC_BPF_H
11#define __NET_TC_BPF_H
12
13#include <linux/filter.h>
14#include <net/act_api.h>
15
16struct tcf_bpf {
ec0595cc 17 struct tc_action common;
cff82457 18 struct bpf_prog __rcu *filter;
a8cb5f55
DB
19 union {
20 u32 bpf_fd;
21 u16 bpf_num_ops;
22 };
d23b8ad8 23 struct sock_filter *bpf_ops;
a8cb5f55 24 const char *bpf_name;
d23b8ad8 25};
a85a970a 26#define to_bpf(a) ((struct tcf_bpf *)a)
d23b8ad8
JP
27
28#endif /* __NET_TC_BPF_H */
This page took 0.146297 seconds and 5 git commands to generate.