![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us> 0004 */ 0005 0006 #ifndef __NET_TC_BPF_H 0007 #define __NET_TC_BPF_H 0008 0009 #include <linux/filter.h> 0010 #include <net/act_api.h> 0011 0012 struct tcf_bpf { 0013 struct tc_action common; 0014 struct bpf_prog __rcu *filter; 0015 union { 0016 u32 bpf_fd; 0017 u16 bpf_num_ops; 0018 }; 0019 struct sock_filter *bpf_ops; 0020 const char *bpf_name; 0021 }; 0022 #define to_bpf(a) ((struct tcf_bpf *)a) 0023 0024 #endif /* __NET_TC_BPF_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |