Home
last modified time | relevance | path

Searched refs:tc_action (Results 1 – 25 of 49) sorted by relevance

12

/linux/include/net/
A Dact_api.h23 struct tc_action { struct
104 int (*act)(struct sk_buff *, const struct tc_action *,
107 void (*cleanup)(struct tc_action *);
110 struct nlattr *est, struct tc_action **act,
118 size_t (*get_fill_size)(const struct tc_action *act);
119 struct net_device *(*get_dev)(const struct tc_action *a,
122 (*get_psample_group)(const struct tc_action *a,
174 struct nlattr *est, struct tc_action **a,
177 void tcf_idr_insert_many(struct tc_action *actions[]);
180 struct tc_action **a, int bind);
[all …]
/linux/include/net/tc_act/
A Dtc_pedit.h14 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()
A Dtc_skbedit.h25 struct tc_action common;
31 static inline bool is_tcf_skbedit_with_flag(const struct tc_action *a, u32 flag) in is_tcf_skbedit_with_flag()
47 static inline bool is_tcf_skbedit_mark(const struct tc_action *a) in is_tcf_skbedit_mark()
52 static inline u32 tcf_skbedit_mark(const struct tc_action *a) in tcf_skbedit_mark()
64 static inline bool is_tcf_skbedit_ptype(const struct tc_action *a) in is_tcf_skbedit_ptype()
69 static inline u32 tcf_skbedit_ptype(const struct tc_action *a) in tcf_skbedit_ptype()
81 static inline bool is_tcf_skbedit_priority(const struct tc_action *a) in is_tcf_skbedit_priority()
86 static inline u32 tcf_skbedit_priority(const struct tc_action *a) in tcf_skbedit_priority()
A Dtc_ct.h34 struct tc_action common;
44 static inline uint16_t tcf_ct_zone(const struct tc_action *a) in tcf_ct_zone()
49 static inline int tcf_ct_action(const struct tc_action *a) in tcf_ct_action()
54 static inline struct nf_flowtable *tcf_ct_ft(const struct tc_action *a) in tcf_ct_ft()
60 static inline uint16_t tcf_ct_zone(const struct tc_action *a) { return 0; } in tcf_ct_zone()
61 static inline int tcf_ct_action(const struct tc_action *a) { return 0; } in tcf_ct_action()
62 static inline struct nf_flowtable *tcf_ct_ft(const struct tc_action *a) in tcf_ct_ft()
84 static inline bool is_tcf_ct(const struct tc_action *a) in is_tcf_ct()
A Dtc_gact.h9 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()
A Dtc_mpls.h25 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()
A Dtc_gate.h41 struct tc_action common;
54 static inline bool is_tcf_gate(const struct tc_action *a) in is_tcf_gate()
63 static inline u32 tcf_gate_index(const struct tc_action *a) in tcf_gate_index()
68 static inline s32 tcf_gate_prio(const struct tc_action *a) in tcf_gate_prio()
77 static inline u64 tcf_gate_basetime(const struct tc_action *a) in tcf_gate_basetime()
86 static inline u64 tcf_gate_cycletime(const struct tc_action *a) in tcf_gate_cycletime()
95 static inline u64 tcf_gate_cycletimeext(const struct tc_action *a) in tcf_gate_cycletimeext()
104 static inline u32 tcf_gate_num_entries(const struct tc_action *a) in tcf_gate_num_entries()
114 *tcf_gate_get_list(const struct tc_action *a) in tcf_gate_get_list()
A Dtc_mirred.h9 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()
A Dtc_vlan.h24 struct tc_action common;
29 static inline bool is_tcf_vlan(const struct tc_action *a) in is_tcf_vlan()
38 static inline u32 tcf_vlan_action(const struct tc_action *a) in tcf_vlan_action()
49 static inline u16 tcf_vlan_push_vid(const struct tc_action *a) in tcf_vlan_push_vid()
60 static inline __be16 tcf_vlan_push_proto(const struct tc_action *a) in tcf_vlan_push_proto()
71 static inline u8 tcf_vlan_push_prio(const struct tc_action *a) in tcf_vlan_push_prio()
A Dtc_police.h24 struct tc_action common;
47 static inline bool is_tcf_police(const struct tc_action *act) in is_tcf_police()
56 static inline u64 tcf_police_rate_bytes_ps(const struct tc_action *act) in tcf_police_rate_bytes_ps()
66 static inline u32 tcf_police_burst(const struct tc_action *act) in tcf_police_burst()
104 static inline u64 tcf_police_rate_pkt_ps(const struct tc_action *act) in tcf_police_rate_pkt_ps()
114 static inline u32 tcf_police_burst_pkt(const struct tc_action *act) in tcf_police_burst_pkt()
152 static inline u32 tcf_police_tcfp_mtu(const struct tc_action *act) in tcf_police_tcfp_mtu()
A Dtc_sample.h10 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()
A Dtc_tunnel_key.h21 struct tc_action common;
27 static inline bool is_tcf_tunnel_set(const struct tc_action *a) in is_tcf_tunnel_set()
41 static inline bool is_tcf_tunnel_release(const struct tc_action *a) in is_tcf_tunnel_release()
55 static inline struct ip_tunnel_info *tcf_tunnel_info(const struct tc_action *a) in tcf_tunnel_info()
71 tcf_tunnel_info_copy(const struct tc_action *a) in tcf_tunnel_info_copy()
A Dtc_csum.h15 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/net/sched/
A Dact_api.c283 struct tc_action *p; in tcf_dump_walker()
359 struct tc_action *p; in tcf_del_walker()
417 struct tc_action *p; in tcf_idr_search()
437 struct tc_action *p; in tcf_idr_delete_index()
560 struct tc_action *p; in tcf_idr_check_alloc()
607 struct tc_action *p; in tcf_idrinfo_destroy()
774 struct tc_action *a; in tcf_action_destroy()
861 struct tc_action *a; in tcf_action_dump()
1017 struct tc_action *a; in tcf_action_init_1()
1073 struct tc_action *act; in tcf_action_init()
[all …]
A Dact_sample.c37 struct nlattr *est, struct tc_action **a, in tcf_sample_init()
129 static void tcf_sample_cleanup(struct tc_action *a) in tcf_sample_cleanup()
157 static int tcf_sample_act(struct sk_buff *skb, const struct tc_action *a, in tcf_sample_act()
194 static void tcf_sample_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_sample_stats_update()
204 static int tcf_sample_dump(struct sk_buff *skb, struct tc_action *a, in tcf_sample_dump()
254 static int tcf_sample_search(struct net *net, struct tc_action **a, u32 index) in tcf_sample_search()
269 tcf_sample_get_group(const struct tc_action *a, in tcf_sample_get_group()
A Dact_simple.c25 static int tcf_simp_act(struct sk_buff *skb, const struct tc_action *a, in tcf_simp_act()
45 static void tcf_simp_release(struct tc_action *a) in tcf_simp_release()
60 static int reset_policy(struct tc_action *a, const struct nlattr *defdata, in reset_policy()
88 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()
A Dact_mirred.c71 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()
219 static int tcf_mirred_act(struct sk_buff *skb, const struct tc_action *a, in tcf_mirred_act()
328 static void tcf_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_stats_update()
338 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_mirred_dump()
384 static int tcf_mirred_search(struct net *net, struct tc_action **a, u32 index) in tcf_mirred_search()
429 tcf_mirred_get_dev(const struct tc_action *a, in tcf_mirred_get_dev()
446 static size_t tcf_mirred_get_fill_size(const struct tc_action *act) in tcf_mirred_get_fill_size()
A Dact_gact.c54 struct nlattr *est, struct tc_action **a, in tcf_gact_init()
149 static int tcf_gact_act(struct sk_buff *skb, const struct tc_action *a, in tcf_gact_act()
172 static void tcf_gact_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_gact_stats_update()
184 static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, in tcf_gact_dump()
235 static int tcf_gact_search(struct net *net, struct tc_action **a, u32 index) in tcf_gact_search()
242 static size_t tcf_gact_get_fill_size(const struct tc_action *act) in tcf_gact_get_fill_size()
A Dact_ipt.c77 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()
205 struct nlattr *est, struct tc_action **a, in tcf_ipt_init()
214 struct nlattr *est, struct tc_action **a, in tcf_xt_init()
222 static int tcf_ipt_act(struct sk_buff *skb, const struct tc_action *a, in tcf_ipt_act()
274 static int tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_ipt_dump()
329 static int tcf_ipt_search(struct net *net, struct tc_action **a, u32 index) in tcf_ipt_search()
378 static int tcf_xt_search(struct net *net, struct tc_action **a, u32 index) in tcf_xt_search()
A Dact_skbedit.c26 static int tcf_skbedit_act(struct sk_buff *skb, const struct tc_action *a, in tcf_skbedit_act()
76 static void tcf_skbedit_stats_update(struct tc_action *a, u64 bytes, in tcf_skbedit_stats_update()
98 struct nlattr *est, struct tc_action **a, in tcf_skbedit_init()
237 static int tcf_skbedit_dump(struct sk_buff *skb, struct tc_action *a, in tcf_skbedit_dump()
292 static void tcf_skbedit_cleanup(struct tc_action *a) in tcf_skbedit_cleanup()
312 static int tcf_skbedit_search(struct net *net, struct tc_action **a, u32 index) in tcf_skbedit_search()
319 static size_t tcf_skbedit_get_fill_size(const struct tc_action *act) in tcf_skbedit_get_fill_size()
A Dact_vlan.c22 static int tcf_vlan_act(struct sk_buff *skb, const struct tc_action *a, in tcf_vlan_act()
116 struct nlattr *est, struct tc_action **a, in tcf_vlan_init()
275 static void tcf_vlan_cleanup(struct tc_action *a) in tcf_vlan_cleanup()
285 static int tcf_vlan_dump(struct sk_buff *skb, struct tc_action *a, in tcf_vlan_dump()
346 static void tcf_vlan_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_vlan_stats_update()
356 static int tcf_vlan_search(struct net *net, struct tc_action **a, u32 index) in tcf_vlan_search()
363 static size_t tcf_vlan_get_fill_size(const struct tc_action *act) in tcf_vlan_get_fill_size()
A Dact_skbmod.c25 static int tcf_skbmod_act(struct sk_buff *skb, const struct tc_action *a, in tcf_skbmod_act()
102 struct nlattr *est, struct tc_action **a, in tcf_skbmod_init()
227 static void tcf_skbmod_cleanup(struct tc_action *a) in tcf_skbmod_cleanup()
237 static int tcf_skbmod_dump(struct sk_buff *skb, struct tc_action *a, in tcf_skbmod_dump()
289 static int tcf_skbmod_search(struct net *net, struct tc_action **a, u32 index) in tcf_skbmod_search()
A Dact_connmark.c31 static int tcf_connmark_act(struct sk_buff *skb, const struct tc_action *a, in tcf_connmark_act()
98 struct nlattr *est, struct tc_action **a, in tcf_connmark_init()
171 static inline int tcf_connmark_dump(struct sk_buff *skb, struct tc_action *a, in tcf_connmark_dump()
213 static int tcf_connmark_search(struct net *net, struct tc_action **a, u32 index) in tcf_connmark_search()
A Dact_ctinfo.c79 static int tcf_ctinfo_act(struct sk_buff *skb, const struct tc_action *a, in tcf_ctinfo_act()
156 struct nlattr *est, struct tc_action **a, in tcf_ctinfo_init()
281 static int tcf_ctinfo_dump(struct sk_buff *skb, struct tc_action *a, in tcf_ctinfo_dump()
355 static int tcf_ctinfo_search(struct net *net, struct tc_action **a, u32 index) in tcf_ctinfo_search()
362 static void tcf_ctinfo_cleanup(struct tc_action *a) in tcf_ctinfo_cleanup()
A Dact_pedit.c138 struct nlattr *est, struct tc_action **a, in tcf_pedit_init()
254 static void tcf_pedit_cleanup(struct tc_action *a) in tcf_pedit_cleanup()
307 static int tcf_pedit_act(struct sk_buff *skb, const struct tc_action *a, in tcf_pedit_act()
410 static void tcf_pedit_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_pedit_stats_update()
420 static int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a, in tcf_pedit_dump()
483 static int tcf_pedit_search(struct net *net, struct tc_action **a, u32 index) in tcf_pedit_search()

Completed in 39 milliseconds

12