| /Linux-v5.4/include/net/ |
| D | act_api.h | 23 struct tc_action { struct 89 int (*act)(struct sk_buff *, const struct tc_action *, 91 int (*dump)(struct sk_buff *, struct tc_action *, int, int); 92 void (*cleanup)(struct tc_action *); 93 int (*lookup)(struct net *net, struct tc_action **a, u32 index); 95 struct nlattr *est, struct tc_action **act, int ovr, 102 void (*stats_update)(struct tc_action *, u64, u32, u64, bool); 103 size_t (*get_fill_size)(const struct tc_action *act); 104 struct net_device *(*get_dev)(const struct tc_action *a, 107 (*get_psample_group)(const struct tc_action *a, [all …]
|
| /Linux-v5.4/include/net/tc_act/ |
| D | tc_pedit.h | 14 struct tc_action common; 23 static inline bool is_tcf_pedit(const struct tc_action *a) in is_tcf_pedit() 32 static inline int tcf_pedit_nkeys(const struct tc_action *a) in tcf_pedit_nkeys() 37 static inline u32 tcf_pedit_htype(const struct tc_action *a, int index) in tcf_pedit_htype() 45 static inline u32 tcf_pedit_cmd(const struct tc_action *a, int index) in tcf_pedit_cmd() 53 static inline u32 tcf_pedit_mask(const struct tc_action *a, int index) in tcf_pedit_mask() 58 static inline u32 tcf_pedit_val(const struct tc_action *a, int index) in tcf_pedit_val() 63 static inline u32 tcf_pedit_offset(const struct tc_action *a, int index) in tcf_pedit_offset()
|
| D | tc_gact.h | 9 struct tc_action common; 19 static inline bool __is_tcf_gact_act(const struct tc_action *a, int act, in __is_tcf_gact_act() 37 static inline bool is_tcf_gact_ok(const struct tc_action *a) in is_tcf_gact_ok() 42 static inline bool is_tcf_gact_shot(const struct tc_action *a) in is_tcf_gact_shot() 47 static inline bool is_tcf_gact_trap(const struct tc_action *a) in is_tcf_gact_trap() 52 static inline bool is_tcf_gact_goto_chain(const struct tc_action *a) in is_tcf_gact_goto_chain() 57 static inline u32 tcf_gact_goto_chain_index(const struct tc_action *a) in tcf_gact_goto_chain_index()
|
| D | tc_mpls.h | 25 struct tc_action common; 30 static inline bool is_tcf_mpls(const struct tc_action *a) in is_tcf_mpls() 39 static inline u32 tcf_mpls_action(const struct tc_action *a) in tcf_mpls_action() 50 static inline __be16 tcf_mpls_proto(const struct tc_action *a) in tcf_mpls_proto() 61 static inline u32 tcf_mpls_label(const struct tc_action *a) in tcf_mpls_label() 72 static inline u8 tcf_mpls_tc(const struct tc_action *a) in tcf_mpls_tc() 83 static inline u8 tcf_mpls_bos(const struct tc_action *a) in tcf_mpls_bos() 94 static inline u8 tcf_mpls_ttl(const struct tc_action *a) in tcf_mpls_ttl()
|
| D | tc_ct.h | 31 struct tc_action common; 39 static inline uint16_t tcf_ct_zone(const struct tc_action *a) in tcf_ct_zone() 44 static inline int tcf_ct_action(const struct tc_action *a) in tcf_ct_action() 50 static inline uint16_t tcf_ct_zone(const struct tc_action *a) { return 0; } in tcf_ct_zone() 51 static inline int tcf_ct_action(const struct tc_action *a) { return 0; } in tcf_ct_action() 54 static inline bool is_tcf_ct(const struct tc_action *a) in is_tcf_ct()
|
| D | tc_mirred.h | 9 struct tc_action common; 17 static inline bool is_tcf_mirred_egress_redirect(const struct tc_action *a) in is_tcf_mirred_egress_redirect() 26 static inline bool is_tcf_mirred_egress_mirror(const struct tc_action *a) in is_tcf_mirred_egress_mirror() 35 static inline bool is_tcf_mirred_ingress_redirect(const struct tc_action *a) in is_tcf_mirred_ingress_redirect() 44 static inline bool is_tcf_mirred_ingress_mirror(const struct tc_action *a) in is_tcf_mirred_ingress_mirror() 53 static inline struct net_device *tcf_mirred_dev(const struct tc_action *a) in tcf_mirred_dev()
|
| D | tc_vlan.h | 21 struct tc_action common; 26 static inline bool is_tcf_vlan(const struct tc_action *a) in is_tcf_vlan() 35 static inline u32 tcf_vlan_action(const struct tc_action *a) in tcf_vlan_action() 46 static inline u16 tcf_vlan_push_vid(const struct tc_action *a) in tcf_vlan_push_vid() 57 static inline __be16 tcf_vlan_push_proto(const struct tc_action *a) in tcf_vlan_push_proto() 68 static inline u8 tcf_vlan_push_prio(const struct tc_action *a) in tcf_vlan_push_prio()
|
| D | tc_sample.h | 10 struct tc_action common; 20 static inline bool is_tcf_sample(const struct tc_action *a) in is_tcf_sample() 29 static inline __u32 tcf_sample_rate(const struct tc_action *a) in tcf_sample_rate() 34 static inline bool tcf_sample_truncate(const struct tc_action *a) in tcf_sample_truncate() 39 static inline int tcf_sample_trunc_size(const struct tc_action *a) in tcf_sample_trunc_size()
|
| D | tc_skbedit.h | 25 struct tc_action common; 31 static inline bool is_tcf_skbedit_mark(const struct tc_action *a) in is_tcf_skbedit_mark() 46 static inline u32 tcf_skbedit_mark(const struct tc_action *a) in tcf_skbedit_mark() 58 static inline bool is_tcf_skbedit_ptype(const struct tc_action *a) in is_tcf_skbedit_ptype() 73 static inline u32 tcf_skbedit_ptype(const struct tc_action *a) in tcf_skbedit_ptype()
|
| D | tc_tunnel_key.h | 21 struct tc_action common; 27 static inline bool is_tcf_tunnel_set(const struct tc_action *a) in is_tcf_tunnel_set() 39 static inline bool is_tcf_tunnel_release(const struct tc_action *a) in is_tcf_tunnel_release() 51 static inline struct ip_tunnel_info *tcf_tunnel_info(const struct tc_action *a) in tcf_tunnel_info() 64 tcf_tunnel_info_copy(const struct tc_action *a) in tcf_tunnel_info_copy()
|
| D | tc_police.h | 21 struct tc_action common; 43 static inline bool is_tcf_police(const struct tc_action *act) in is_tcf_police() 52 static inline u64 tcf_police_rate_bytes_ps(const struct tc_action *act) in tcf_police_rate_bytes_ps() 61 static inline s64 tcf_police_tcfp_burst(const struct tc_action *act) in tcf_police_tcfp_burst()
|
| D | tc_csum.h | 15 struct tc_action common; 21 static inline bool is_tcf_csum(const struct tc_action *a) in is_tcf_csum() 30 static inline u32 tcf_csum_update_flags(const struct tc_action *a) in tcf_csum_update_flags()
|
| /Linux-v5.4/net/sched/ |
| D | act_api.c | 25 static void tcf_action_goto_chain_exec(const struct tc_action *a, in tcf_action_goto_chain_exec() 87 struct tcf_chain *tcf_action_set_ctrlact(struct tc_action *a, int action, in tcf_action_set_ctrlact() 101 static void free_tcf(struct tc_action *p) in free_tcf() 116 static void tcf_action_cleanup(struct tc_action *p) in tcf_action_cleanup() 125 static int __tcf_action_put(struct tc_action *p, bool bind) in __tcf_action_put() 145 int __tcf_idr_release(struct tc_action *p, bool bind, bool strict) in __tcf_idr_release() 173 static size_t tcf_action_shared_attrs_size(const struct tc_action *act) in tcf_action_shared_attrs_size() 205 static size_t tcf_action_fill_size(const struct tc_action *act) in tcf_action_fill_size() 222 struct tc_action *p; in tcf_dump_walker() 273 static int tcf_idr_release_unsafe(struct tc_action *p) in tcf_idr_release_unsafe() [all …]
|
| D | act_simple.c | 25 static int tcf_simp_act(struct sk_buff *skb, const struct tc_action *a, in tcf_simp_act() 44 static void tcf_simp_release(struct tc_action *a) in tcf_simp_release() 59 static int reset_policy(struct tc_action *a, const struct nlattr *defdata, in reset_policy() 87 struct nlattr *est, struct tc_action **a, in tcf_simp_init() 170 static int tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, in tcf_simp_dump() 211 static int tcf_simp_search(struct net *net, struct tc_action **a, u32 index) in tcf_simp_search()
|
| D | act_vlan.c | 22 static int tcf_vlan_act(struct sk_buff *skb, const struct tc_action *a, in tcf_vlan_act() 103 struct nlattr *est, struct tc_action **a, in tcf_vlan_init() 242 static void tcf_vlan_cleanup(struct tc_action *a) in tcf_vlan_cleanup() 252 static int tcf_vlan_dump(struct sk_buff *skb, struct tc_action *a, in tcf_vlan_dump() 304 static void tcf_vlan_stats_update(struct tc_action *a, u64 bytes, u32 packets, in tcf_vlan_stats_update() 317 static int tcf_vlan_search(struct net *net, struct tc_action **a, u32 index) in tcf_vlan_search() 324 static size_t tcf_vlan_get_fill_size(const struct tc_action *act) in tcf_vlan_get_fill_size()
|
| D | act_mirred.c | 70 static void tcf_mirred_release(struct tc_action *a) in tcf_mirred_release() 93 struct nlattr *est, struct tc_action **a, in tcf_mirred_init() 210 static int tcf_mirred_act(struct sk_buff *skb, const struct tc_action *a, in tcf_mirred_act() 315 static void tcf_stats_update(struct tc_action *a, u64 bytes, u32 packets, in tcf_stats_update() 328 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_mirred_dump() 374 static int tcf_mirred_search(struct net *net, struct tc_action **a, u32 index) in tcf_mirred_search() 419 tcf_mirred_get_dev(const struct tc_action *a, in tcf_mirred_get_dev() 436 static size_t tcf_mirred_get_fill_size(const struct tc_action *act) in tcf_mirred_get_fill_size()
|
| D | act_gact.c | 54 struct nlattr *est, struct tc_action **a, in tcf_gact_init() 150 static int tcf_gact_act(struct sk_buff *skb, const struct tc_action *a, in tcf_gact_act() 173 static void tcf_gact_stats_update(struct tc_action *a, u64 bytes, u32 packets, in tcf_gact_stats_update() 192 static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, in tcf_gact_dump() 243 static int tcf_gact_search(struct net *net, struct tc_action **a, u32 index) in tcf_gact_search() 250 static size_t tcf_gact_get_fill_size(const struct tc_action *act) in tcf_gact_get_fill_size()
|
| D | act_sample.c | 37 struct nlattr *est, struct tc_action **a, int ovr, in tcf_sample_init() 130 static void tcf_sample_cleanup(struct tc_action *a) in tcf_sample_cleanup() 158 static int tcf_sample_act(struct sk_buff *skb, const struct tc_action *a, in tcf_sample_act() 199 static int tcf_sample_dump(struct sk_buff *skb, struct tc_action *a, in tcf_sample_dump() 249 static int tcf_sample_search(struct net *net, struct tc_action **a, u32 index) in tcf_sample_search() 264 tcf_sample_get_group(const struct tc_action *a, in tcf_sample_get_group()
|
| D | act_ipt.c | 77 static void tcf_ipt_release(struct tc_action *a) in tcf_ipt_release() 96 struct nlattr *est, struct tc_action **a, in __tcf_ipt_init() 206 struct nlattr *est, struct tc_action **a, int ovr, in tcf_ipt_init() 215 struct nlattr *est, struct tc_action **a, int ovr, in tcf_xt_init() 223 static int tcf_ipt_act(struct sk_buff *skb, const struct tc_action *a, in tcf_ipt_act() 275 static int tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_ipt_dump() 330 static int tcf_ipt_search(struct net *net, struct tc_action **a, u32 index) in tcf_ipt_search() 379 static int tcf_xt_search(struct net *net, struct tc_action **a, u32 index) in tcf_xt_search()
|
| D | act_skbedit.c | 26 static int tcf_skbedit_act(struct sk_buff *skb, const struct tc_action *a, in tcf_skbedit_act() 87 struct nlattr *est, struct tc_action **a, in tcf_skbedit_init() 228 static int tcf_skbedit_dump(struct sk_buff *skb, struct tc_action *a, in tcf_skbedit_dump() 283 static void tcf_skbedit_cleanup(struct tc_action *a) in tcf_skbedit_cleanup() 303 static int tcf_skbedit_search(struct net *net, struct tc_action **a, u32 index) in tcf_skbedit_search() 310 static size_t tcf_skbedit_get_fill_size(const struct tc_action *act) in tcf_skbedit_get_fill_size()
|
| D | act_skbmod.c | 24 static int tcf_skbmod_act(struct sk_buff *skb, const struct tc_action *a, in tcf_skbmod_act() 80 struct nlattr *est, struct tc_action **a, in tcf_skbmod_init() 204 static void tcf_skbmod_cleanup(struct tc_action *a) in tcf_skbmod_cleanup() 214 static int tcf_skbmod_dump(struct sk_buff *skb, struct tc_action *a, in tcf_skbmod_dump() 266 static int tcf_skbmod_search(struct net *net, struct tc_action **a, u32 index) in tcf_skbmod_search()
|
| D | act_connmark.c | 31 static int tcf_connmark_act(struct sk_buff *skb, const struct tc_action *a, in tcf_connmark_act() 95 struct nlattr *est, struct tc_action **a, in tcf_connmark_init() 169 static inline int tcf_connmark_dump(struct sk_buff *skb, struct tc_action *a, in tcf_connmark_dump() 211 static int tcf_connmark_search(struct net *net, struct tc_action **a, u32 index) in tcf_connmark_search()
|
| D | act_police.c | 48 struct nlattr *est, struct tc_action **a, in tcf_police_init() 218 static int tcf_police_act(struct sk_buff *skb, const struct tc_action *a, in tcf_police_act() 280 static void tcf_police_cleanup(struct tc_action *a) in tcf_police_cleanup() 290 static void tcf_police_stats_update(struct tc_action *a, in tcf_police_stats_update() 304 static int tcf_police_dump(struct sk_buff *skb, struct tc_action *a, in tcf_police_dump() 364 static int tcf_police_search(struct net *net, struct tc_action **a, u32 index) in tcf_police_search()
|
| D | act_bpf.c | 34 static int tcf_bpf_act(struct sk_buff *skb, const struct tc_action *act, in tcf_bpf_act() 134 static int tcf_bpf_dump(struct sk_buff *skb, struct tc_action *act, in tcf_bpf_dump() 276 struct nlattr *est, struct tc_action **act, in tcf_bpf_init() 383 static void tcf_bpf_cleanup(struct tc_action *act) in tcf_bpf_cleanup() 401 static int tcf_bpf_search(struct net *net, struct tc_action **a, u32 index) in tcf_bpf_search()
|
| D | act_mpls.c | 52 static int tcf_mpls_act(struct sk_buff *skb, const struct tc_action *a, in tcf_mpls_act() 132 struct nlattr *est, struct tc_action **a, in tcf_mpls_init() 284 static void tcf_mpls_cleanup(struct tc_action *a) in tcf_mpls_cleanup() 294 static int tcf_mpls_dump(struct sk_buff *skb, struct tc_action *a, in tcf_mpls_dump() 358 static int tcf_mpls_search(struct net *net, struct tc_action **a, u32 index) in tcf_mpls_search()
|