Home
last modified time | relevance | path

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

12

/linux/include/net/
H A Dact_api.h24 struct tc_action { struct
121 int (*act)(struct sk_buff *, const struct tc_action *,
123 int (*dump)(struct sk_buff *, struct tc_action *, int, int);
124 void (*cleanup)(struct tc_action *);
125 int (*lookup)(struct net *net, struct tc_action **a, u32 index);
127 struct nlattr *est, struct tc_action **act,
134 void (*stats_update)(struct tc_action *, u64, u64, u64, u64, bool);
135 size_t (*get_fill_size)(const struct tc_action *act);
136 struct net_device *(*get_dev)(const struct tc_action *a,
139 (*get_psample_group)(const struct tc_action *a,
[all …]
/linux/include/net/tc_act/
H A Dtc_skbedit.h27 struct tc_action common;
33 static inline bool is_tcf_skbedit_with_flag(const struct tc_action *a, u32 flag) in is_tcf_skbedit_with_flag()
49 static inline bool is_tcf_skbedit_mark(const struct tc_action *a) in is_tcf_skbedit_mark()
54 static inline u32 tcf_skbedit_mark(const struct tc_action *a) in tcf_skbedit_mark()
66 static inline bool is_tcf_skbedit_ptype(const struct tc_action *a) in is_tcf_skbedit_ptype()
71 static inline u32 tcf_skbedit_ptype(const struct tc_action *a) in tcf_skbedit_ptype()
83 static inline bool is_tcf_skbedit_priority(const struct tc_action *a) in is_tcf_skbedit_priority()
88 static inline u32 tcf_skbedit_priority(const struct tc_action *a) in tcf_skbedit_priority()
99 static inline u16 tcf_skbedit_rx_queue_mapping(const struct tc_action *a) in tcf_skbedit_rx_queue_mapping()
111 static inline bool is_tcf_skbedit_queue_mapping(const struct tc_action *a) in is_tcf_skbedit_queue_mapping()
[all …]
H 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()
62 static inline bool is_tcf_gact_continue(const struct tc_action *a) in is_tcf_gact_continue()
67 static inline bool is_tcf_gact_reclassify(const struct tc_action *a) in is_tcf_gact_reclassify()
72 static inline bool is_tcf_gact_pipe(const struct tc_action *a) in is_tcf_gact_pipe()
H A Dtc_ct.h36 struct tc_action common;
46 static inline uint16_t tcf_ct_zone(const struct tc_action *a) in tcf_ct_zone()
51 static inline int tcf_ct_action(const struct tc_action *a) in tcf_ct_action()
56 static inline struct nf_flowtable *tcf_ct_ft(const struct tc_action *a) in tcf_ct_ft()
61 static inline struct nf_conntrack_helper *tcf_ct_helper(const struct tc_action *a) in tcf_ct_helper()
67 static inline uint16_t tcf_ct_zone(const struct tc_action *a) { return 0; } in tcf_ct_zone()
68 static inline int tcf_ct_action(const struct tc_action *a) { return 0; } in tcf_ct_action()
69 static inline struct nf_flowtable *tcf_ct_ft(const struct tc_action *a) in tcf_ct_ft()
73 static inline struct nf_conntrack_helper *tcf_ct_helper(const struct tc_action *a) in tcf_ct_helper()
H A Dtc_pedit.h25 struct tc_action common;
32 static inline bool is_tcf_pedit(const struct tc_action *a) in is_tcf_pedit()
41 static inline int tcf_pedit_nkeys(const struct tc_action *a) in tcf_pedit_nkeys()
54 static inline u32 tcf_pedit_htype(const struct tc_action *a, int index) in tcf_pedit_htype()
68 static inline u32 tcf_pedit_cmd(const struct tc_action *a, int index) in tcf_pedit_cmd()
82 static inline u32 tcf_pedit_mask(const struct tc_action *a, int index) in tcf_pedit_mask()
95 static inline u32 tcf_pedit_val(const struct tc_action *a, int index) in tcf_pedit_val()
108 static inline u32 tcf_pedit_offset(const struct tc_action *a, int index) in tcf_pedit_offset()
H A Dtc_mpls.h26 struct tc_action common;
31 static inline u32 tcf_mpls_action(const struct tc_action *a) in tcf_mpls_action()
42 static inline __be16 tcf_mpls_proto(const struct tc_action *a) in tcf_mpls_proto()
53 static inline u32 tcf_mpls_label(const struct tc_action *a) in tcf_mpls_label()
64 static inline u8 tcf_mpls_tc(const struct tc_action *a) in tcf_mpls_tc()
75 static inline u8 tcf_mpls_bos(const struct tc_action *a) in tcf_mpls_bos()
86 static inline u8 tcf_mpls_ttl(const struct tc_action *a) in tcf_mpls_ttl()
H A Dtc_police.h25 struct tc_action common;
48 static inline u64 tcf_police_rate_bytes_ps(const struct tc_action *act) in tcf_police_rate_bytes_ps()
58 static inline u32 tcf_police_burst(const struct tc_action *act) in tcf_police_burst()
96 static inline u64 tcf_police_rate_pkt_ps(const struct tc_action *act) in tcf_police_rate_pkt_ps()
106 static inline u32 tcf_police_burst_pkt(const struct tc_action *act) in tcf_police_burst_pkt()
144 static inline u32 tcf_police_tcfp_mtu(const struct tc_action *act) in tcf_police_tcfp_mtu()
154 static inline u64 tcf_police_peakrate_bytes_ps(const struct tc_action *act) in tcf_police_peakrate_bytes_ps()
164 static inline u32 tcf_police_tcfp_ewma_rate(const struct tc_action *act) in tcf_police_tcfp_ewma_rate()
174 static inline u16 tcf_police_rate_overhead(const struct tc_action *act) in tcf_police_rate_overhead()
H A Dtc_mirred.h9 struct tc_action common;
19 static inline bool is_tcf_mirred_egress_redirect(const struct tc_action *a) in is_tcf_mirred_egress_redirect()
28 static inline bool is_tcf_mirred_egress_mirror(const struct tc_action *a) in is_tcf_mirred_egress_mirror()
37 static inline bool is_tcf_mirred_ingress_redirect(const struct tc_action *a) in is_tcf_mirred_ingress_redirect()
46 static inline bool is_tcf_mirred_ingress_mirror(const struct tc_action *a) in is_tcf_mirred_ingress_mirror()
55 static inline struct net_device *tcf_mirred_dev(const struct tc_action *a) in tcf_mirred_dev()
H A Dtc_gate.h42 struct tc_action common;
55 static inline struct tcf_gate_params *tcf_gate_params_locked(const struct tc_action *a) in tcf_gate_params_locked()
63 static inline s32 tcf_gate_prio(const struct tc_action *a) in tcf_gate_prio()
74 static inline u64 tcf_gate_basetime(const struct tc_action *a) in tcf_gate_basetime()
85 static inline u64 tcf_gate_cycletime(const struct tc_action *a) in tcf_gate_cycletime()
96 static inline u64 tcf_gate_cycletimeext(const struct tc_action *a) in tcf_gate_cycletimeext()
107 static inline u32 tcf_gate_num_entries(const struct tc_action *a) in tcf_gate_num_entries()
119 *tcf_gate_get_list(const struct tc_action *a) in tcf_gate_get_list()
H A Dtc_sample.h10 struct tc_action common;
20 static inline __u32 tcf_sample_rate(const struct tc_action *a) in tcf_sample_rate()
25 static inline bool tcf_sample_truncate(const struct tc_action *a) in tcf_sample_truncate()
30 static inline int tcf_sample_trunc_size(const struct tc_action *a) in tcf_sample_trunc_size()
H A Dtc_csum.h16 struct tc_action common;
22 static inline u32 tcf_csum_update_flags(const struct tc_action *a) in tcf_csum_update_flags()
/linux/net/sched/
H A Dact_api.c44 static void tcf_action_goto_chain_exec(const struct tc_action *a, in tcf_action_goto_chain_exec()
106 struct tcf_chain *tcf_action_set_ctrlact(struct tc_action *a, int action, in tcf_action_set_ctrlact()
120 static void free_tcf(struct tc_action *p) in free_tcf()
135 static void offload_action_hw_count_set(struct tc_action *act, in offload_action_hw_count_set()
141 static void offload_action_hw_count_inc(struct tc_action *act, in offload_action_hw_count_inc()
147 static void offload_action_hw_count_dec(struct tc_action *act, in offload_action_hw_count_dec()
154 static unsigned int tcf_offload_act_num_actions_single(struct tc_action *act) in tcf_offload_act_num_actions_single()
181 struct tc_action *act, in offload_action_init()
246 static int tcf_action_offload_add_ex(struct tc_action *action, in tcf_action_offload_add_ex()
252 struct tc_action *actions[TCA_ACT_MAX_PRIO] = { in tcf_action_offload_add_ex()
[all …]
H A Dact_sample.c37 struct nlattr *est, struct tc_action **a, in tcf_sample_init()
136 static void tcf_sample_cleanup(struct tc_action *a) in tcf_sample_cleanup()
165 const struct tc_action *a, in tcf_sample_act()
214 static void tcf_sample_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_sample_stats_update()
224 static int tcf_sample_dump(struct sk_buff *skb, struct tc_action *a, in tcf_sample_dump()
272 tcf_sample_get_group(const struct tc_action *a, in tcf_sample_get_group()
289 const struct tc_action *act) in tcf_offload_sample_get_group()
296 static int tcf_sample_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_sample_offload_act_setup()
H A Dact_gact.c54 struct nlattr *est, struct tc_action **a, in tcf_gact_init()
150 const struct tc_action *a, in tcf_gact_act()
173 static void tcf_gact_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_gact_stats_update()
185 static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, in tcf_gact_dump()
226 static size_t tcf_gact_get_fill_size(const struct tc_action *act) in tcf_gact_get_fill_size()
239 static int tcf_gact_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_gact_offload_act_setup()
H A Dact_vlan.c23 const struct tc_action *a, in tcf_vlan_act()
115 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()
336 static void tcf_vlan_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_vlan_stats_update()
346 static size_t tcf_vlan_get_fill_size(const struct tc_action *act) in tcf_vlan_get_fill_size()
354 static int tcf_vlan_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_vlan_offload_act_setup()
H A Dact_mirred.c69 static void tcf_mirred_release(struct tc_action *a) in tcf_mirred_release()
101 struct nlattr *est, struct tc_action **a, in tcf_mirred_init()
421 const struct tc_action *a, in tcf_mirred_act()
477 static void tcf_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_stats_update()
487 static int tcf_mirred_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_mirred_dump()
566 tcf_mirred_get_dev(const struct tc_action *a, in tcf_mirred_get_dev()
583 static size_t tcf_mirred_get_fill_size(const struct tc_action *act) in tcf_mirred_get_fill_size()
589 const struct tc_action *act) in tcf_offload_mirred_get_dev()
597 static int tcf_mirred_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_mirred_offload_act_setup()
H A Dact_skbedit.c41 const struct tc_action *a, in tcf_skbedit_act()
93 static void tcf_skbedit_stats_update(struct tc_action *a, u64 bytes, in tcf_skbedit_stats_update()
116 struct nlattr *est, struct tc_action **a, in tcf_skbedit_init()
287 static int tcf_skbedit_dump(struct sk_buff *skb, struct tc_action *a, in tcf_skbedit_dump()
348 static void tcf_skbedit_cleanup(struct tc_action *a) in tcf_skbedit_cleanup()
358 static size_t tcf_skbedit_get_fill_size(const struct tc_action *act) in tcf_skbedit_get_fill_size()
370 static int tcf_skbedit_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_skbedit_offload_act_setup()
H A Dact_connmark.c32 const struct tc_action *a, in tcf_connmark_act()
99 struct nlattr *est, struct tc_action **a, in tcf_connmark_init()
192 static inline int tcf_connmark_dump(struct sk_buff *skb, struct tc_action *a, in tcf_connmark_dump()
229 static void tcf_connmark_cleanup(struct tc_action *a) in tcf_connmark_cleanup()
H A Dact_gate.c123 const struct tc_action *a, in tcf_gate_act()
348 struct nlattr *est, struct tc_action **a, in tcf_gate_init()
563 static void tcf_gate_cleanup(struct tc_action *a) in tcf_gate_cleanup()
605 static int tcf_gate_dump(struct sk_buff *skb, struct tc_action *a, in tcf_gate_dump()
672 static void tcf_gate_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_gate_stats_update()
682 static size_t tcf_gate_get_fill_size(const struct tc_action *act) in tcf_gate_get_fill_size()
695 const struct tc_action *act) in tcf_gate_get_entries()
708 static int tcf_gate_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_gate_offload_act_setup()
H A Dact_skbmod.c26 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()
H A Dact_mpls.c54 const struct tc_action *a, in tcf_mpls_act()
159 struct nlattr *est, struct tc_action **a, in tcf_mpls_init()
318 static void tcf_mpls_cleanup(struct tc_action *a) in tcf_mpls_cleanup()
328 static int tcf_mpls_dump(struct sk_buff *skb, struct tc_action *a, in tcf_mpls_dump()
382 static int tcf_mpls_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_mpls_offload_act_setup()
H A Dact_nat.c36 struct tc_action **a, struct tcf_proto *tp, in tcf_nat_init()
116 const struct tc_action *a, in tcf_nat_act()
267 static int tcf_nat_dump(struct sk_buff *skb, struct tc_action *a, in tcf_nat_dump()
306 static void tcf_nat_cleanup(struct tc_action *a) in tcf_nat_cleanup()
H A Dact_pedit.c157 struct nlattr *est, struct tc_action **a, in tcf_pedit_init()
310 static void tcf_pedit_cleanup(struct tc_action *a) in tcf_pedit_cleanup()
387 const struct tc_action *a, in tcf_pedit_act()
489 static void tcf_pedit_stats_update(struct tc_action *a, u64 bytes, u64 packets, in tcf_pedit_stats_update()
499 static int tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a, in tcf_pedit_dump()
555 static int tcf_pedit_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_pedit_offload_act_setup()
H A Dact_police.c41 struct nlattr *est, struct tc_action **a, in tcf_police_init()
247 const struct tc_action *a, in tcf_police_act()
318 static void tcf_police_cleanup(struct tc_action *a) in tcf_police_cleanup()
328 static void tcf_police_stats_update(struct tc_action *a, in tcf_police_stats_update()
339 static int tcf_police_dump(struct sk_buff *skb, struct tc_action *a, in tcf_police_dump()
436 static int tcf_police_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_police_offload_act_setup()
H A Dact_csum.c44 struct nlattr *est, struct tc_action **a, in tcf_csum_init()
568 const struct tc_action *a, in tcf_csum_act()
636 static int tcf_csum_dump(struct sk_buff *skb, struct tc_action *a, int bind, in tcf_csum_dump()
670 static void tcf_csum_cleanup(struct tc_action *a) in tcf_csum_cleanup()
680 static size_t tcf_csum_get_fill_size(const struct tc_action *act) in tcf_csum_get_fill_size()
685 static int tcf_csum_offload_act_setup(struct tc_action *act, void *entry_data, in tcf_csum_offload_act_setup()

12