Home
last modified time | relevance | path

Searched refs:tcf_proto (Results 1 - 25 of 104) sorted by relevance

12345

/kernel/linux/linux-5.10/net/sched/
H A Dcls_cgroup.c21 struct tcf_proto *tp;
25 static int cls_cgroup_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_cgroup_classify()
44 static void *cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get()
49 static int cls_cgroup_init(struct tcf_proto *tp) in cls_cgroup_init()
77 struct tcf_proto *tp, unsigned long base, in cls_cgroup_change()
132 static void cls_cgroup_destroy(struct tcf_proto *tp, bool rtnl_held, in cls_cgroup_destroy()
146 static int cls_cgroup_delete(struct tcf_proto *tp, void *arg, bool *last, in cls_cgroup_delete()
152 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg, in cls_cgroup_walk()
170 static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, void *fh, in cls_cgroup_dump()
H A Dcls_bpf.c49 struct tcf_proto *tp;
80 static int cls_bpf_classify(struct sk_buff *skb, const struct tcf_proto *tp, in cls_bpf_classify()
144 static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload_cmd()
196 static int cls_bpf_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload()
215 static void cls_bpf_stop_offload(struct tcf_proto *tp, in cls_bpf_stop_offload()
226 static void cls_bpf_offload_update_stats(struct tcf_proto *tp, in cls_bpf_offload_update_stats()
242 static int cls_bpf_init(struct tcf_proto *tp) in cls_bpf_init()
287 static void __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog, in __cls_bpf_delete()
302 static int cls_bpf_delete(struct tcf_proto *tp, void *arg, bool *last, in cls_bpf_delete()
312 static void cls_bpf_destroy(struct tcf_proto *t
[all...]
H A Dcls_matchall.c27 static int mall_classify(struct sk_buff *skb, const struct tcf_proto *tp, in mall_classify()
43 static int mall_init(struct tcf_proto *tp) in mall_init()
66 static void mall_destroy_hw_filter(struct tcf_proto *tp, in mall_destroy_hw_filter()
82 static int mall_replace_hw_filter(struct tcf_proto *tp, in mall_replace_hw_filter()
128 static void mall_destroy(struct tcf_proto *tp, bool rtnl_held, in mall_destroy()
147 static void *mall_get(struct tcf_proto *tp, u32 handle) in mall_get()
163 static int mall_set_parms(struct net *net, struct tcf_proto *tp, in mall_set_parms()
184 struct tcf_proto *tp, unsigned long base, in mall_change()
259 static int mall_delete(struct tcf_proto *tp, void *arg, bool *last, in mall_delete()
269 static void mall_walk(struct tcf_proto *t
[all...]
H A Dcls_api.c50 static u32 destroy_obj_hashfn(const struct tcf_proto *tp) in destroy_obj_hashfn()
57 struct tcf_proto *tp) in tcf_proto_signal_destroying()
67 static bool tcf_proto_cmp(const struct tcf_proto *tp1, in tcf_proto_cmp()
68 const struct tcf_proto *tp2) in tcf_proto_cmp()
76 struct tcf_proto *tp) in tcf_proto_exists_destroying()
79 struct tcf_proto *iter; in tcf_proto_exists_destroying()
96 tcf_proto_signal_destroyed(struct tcf_chain *chain, struct tcf_proto *tp) in tcf_proto_signal_destroyed()
211 static inline u32 tcf_auto_prio(struct tcf_proto *tp) in tcf_auto_prio()
249 static struct tcf_proto *tcf_proto_create(const char *kind, u32 protocol, in tcf_proto_create()
254 struct tcf_proto *t in tcf_proto_create()
[all...]
H A Dcls_fw.c39 struct tcf_proto *tp;
50 static int fw_classify(struct sk_buff *skb, const struct tcf_proto *tp, in fw_classify()
89 static void *fw_get(struct tcf_proto *tp, u32 handle) in fw_get()
105 static int fw_init(struct tcf_proto *tp) in fw_init()
130 static void fw_destroy(struct tcf_proto *tp, bool rtnl_held, in fw_destroy()
154 static int fw_delete(struct tcf_proto *tp, void *arg, bool *last, in fw_delete()
199 static int fw_set_parms(struct net *net, struct tcf_proto *tp, in fw_set_parms()
238 struct tcf_proto *tp, unsigned long base, in fw_change()
344 static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg, in fw_walk()
374 static int fw_dump(struct net *net, struct tcf_proto *t
[all...]
H A Dcls_basic.c33 struct tcf_proto *tp;
39 static int basic_classify(struct sk_buff *skb, const struct tcf_proto *tp, in basic_classify()
60 static void *basic_get(struct tcf_proto *tp, u32 handle) in basic_get()
74 static int basic_init(struct tcf_proto *tp) in basic_init()
106 static void basic_destroy(struct tcf_proto *tp, bool rtnl_held, in basic_destroy()
125 static int basic_delete(struct tcf_proto *tp, void *arg, bool *last, in basic_delete()
145 static int basic_set_parms(struct net *net, struct tcf_proto *tp, in basic_set_parms()
171 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change()
247 static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg, in basic_walk()
279 static int basic_dump(struct net *net, struct tcf_proto *t
[all...]
H A Dcls_route.c55 struct tcf_proto *tp;
124 static int route4_classify(struct sk_buff *skb, const struct tcf_proto *tp, in route4_classify()
215 static void *route4_get(struct tcf_proto *tp, u32 handle) in route4_get()
241 static int route4_init(struct tcf_proto *tp) in route4_init()
275 static void route4_destroy(struct tcf_proto *tp, bool rtnl_held, in route4_destroy()
311 static int route4_delete(struct tcf_proto *tp, void *arg, bool *last, in route4_delete()
381 static int route4_set_parms(struct net *net, struct tcf_proto *tp, in route4_set_parms()
471 struct tcf_proto *tp, unsigned long base, u32 handle, in route4_change()
570 static void route4_walk(struct tcf_proto *tp, struct tcf_walker *arg, in route4_walk()
604 static int route4_dump(struct net *net, struct tcf_proto *t
[all...]
H A Dcls_u32.c103 static int u32_classify(struct sk_buff *skb, const struct tcf_proto *tp, in u32_classify()
286 static void *u32_get(struct tcf_proto *tp, u32 handle) in u32_get()
319 static void *tc_u_common_ptr(const struct tcf_proto *tp) in tc_u_common_ptr()
350 static int u32_init(struct tcf_proto *tp) in u32_init()
448 static int u32_delete_key(struct tcf_proto *tp, struct tc_u_knode *key) in u32_delete_key()
475 static void u32_clear_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h, in u32_clear_hw_hnode()
490 static int u32_replace_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h, in u32_replace_hw_hnode()
519 static void u32_remove_hw_knode(struct tcf_proto *tp, struct tc_u_knode *n, in u32_remove_hw_knode()
533 static int u32_replace_hw_knode(struct tcf_proto *tp, struct tc_u_knode *n, in u32_replace_hw_knode()
572 static void u32_clear_hnode(struct tcf_proto *t
[all...]
H A Dcls_flow.c41 struct tcf_proto *tp;
295 static int flow_classify(struct sk_buff *skb, const struct tcf_proto *tp, in flow_classify()
388 struct tcf_proto *tp, unsigned long base, in flow_change()
566 static int flow_delete(struct tcf_proto *tp, void *arg, bool *last, in flow_delete()
579 static int flow_init(struct tcf_proto *tp) in flow_init()
591 static void flow_destroy(struct tcf_proto *tp, bool rtnl_held, in flow_destroy()
607 static void *flow_get(struct tcf_proto *tp, u32 handle) in flow_get()
618 static int flow_dump(struct net *net, struct tcf_proto *tp, void *fh, in flow_dump()
679 static void flow_walk(struct tcf_proto *tp, struct tcf_walker *arg, in flow_walk()
/kernel/linux/linux-6.6/net/sched/
H A Dcls_cgroup.c22 struct tcf_proto *tp;
27 const struct tcf_proto *tp, in cls_cgroup_classify()
46 static void *cls_cgroup_get(struct tcf_proto *tp, u32 handle) in cls_cgroup_get()
51 static int cls_cgroup_init(struct tcf_proto *tp) in cls_cgroup_init()
79 struct tcf_proto *tp, unsigned long base, in cls_cgroup_change()
134 static void cls_cgroup_destroy(struct tcf_proto *tp, bool rtnl_held, in cls_cgroup_destroy()
148 static int cls_cgroup_delete(struct tcf_proto *tp, void *arg, bool *last, in cls_cgroup_delete()
154 static void cls_cgroup_walk(struct tcf_proto *tp, struct tcf_walker *arg, in cls_cgroup_walk()
172 static int cls_cgroup_dump(struct net *net, struct tcf_proto *tp, void *fh, in cls_cgroup_dump()
H A Dcls_bpf.c50 struct tcf_proto *tp;
82 const struct tcf_proto *tp, in cls_bpf_classify()
145 static int cls_bpf_offload_cmd(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload_cmd()
197 static int cls_bpf_offload(struct tcf_proto *tp, struct cls_bpf_prog *prog, in cls_bpf_offload()
216 static void cls_bpf_stop_offload(struct tcf_proto *tp, in cls_bpf_stop_offload()
227 static void cls_bpf_offload_update_stats(struct tcf_proto *tp, in cls_bpf_offload_update_stats()
243 static int cls_bpf_init(struct tcf_proto *tp) in cls_bpf_init()
288 static void __cls_bpf_delete(struct tcf_proto *tp, struct cls_bpf_prog *prog, in __cls_bpf_delete()
303 static int cls_bpf_delete(struct tcf_proto *tp, void *arg, bool *last, in cls_bpf_delete()
313 static void cls_bpf_destroy(struct tcf_proto *t
[all...]
H A Dcls_api.c55 const struct tcf_proto *tp;
77 tcf_exts_miss_cookie_base_alloc(struct tcf_exts *exts, struct tcf_proto *tp, in tcf_exts_miss_cookie_base_alloc()
133 tcf_exts_miss_cookie_base_alloc(struct tcf_exts *exts, struct tcf_proto *tp, in tcf_exts_miss_cookie_base_alloc()
172 static u32 destroy_obj_hashfn(const struct tcf_proto *tp) in destroy_obj_hashfn()
179 struct tcf_proto *tp) in tcf_proto_signal_destroying()
189 static bool tcf_proto_cmp(const struct tcf_proto *tp1, in tcf_proto_cmp()
190 const struct tcf_proto *tp2) in tcf_proto_cmp()
198 struct tcf_proto *tp) in tcf_proto_exists_destroying()
201 struct tcf_proto *iter; in tcf_proto_exists_destroying()
218 tcf_proto_signal_destroyed(struct tcf_chain *chain, struct tcf_proto *t
[all...]
H A Dcls_matchall.c29 const struct tcf_proto *tp, in mall_classify()
45 static int mall_init(struct tcf_proto *tp) in mall_init()
68 static void mall_destroy_hw_filter(struct tcf_proto *tp, in mall_destroy_hw_filter()
84 static int mall_replace_hw_filter(struct tcf_proto *tp, in mall_replace_hw_filter()
127 static void mall_destroy(struct tcf_proto *tp, bool rtnl_held, in mall_destroy()
146 static void *mall_get(struct tcf_proto *tp, u32 handle) in mall_get()
163 struct tcf_proto *tp, unsigned long base, in mall_change()
247 static int mall_delete(struct tcf_proto *tp, void *arg, bool *last, in mall_delete()
257 static void mall_walk(struct tcf_proto *tp, struct tcf_walker *arg, in mall_walk()
273 static int mall_reoffload(struct tcf_proto *t
[all...]
H A Dcls_fw.c40 struct tcf_proto *tp;
52 const struct tcf_proto *tp, in fw_classify()
91 static void *fw_get(struct tcf_proto *tp, u32 handle) in fw_get()
107 static int fw_init(struct tcf_proto *tp) in fw_init()
132 static void fw_destroy(struct tcf_proto *tp, bool rtnl_held, in fw_destroy()
156 static int fw_delete(struct tcf_proto *tp, void *arg, bool *last, in fw_delete()
201 static int fw_set_parms(struct net *net, struct tcf_proto *tp, in fw_set_parms()
240 struct tcf_proto *tp, unsigned long base, in fw_change()
345 static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg, in fw_walk()
368 static int fw_dump(struct net *net, struct tcf_proto *t
[all...]
H A Dcls_basic.c34 struct tcf_proto *tp;
41 const struct tcf_proto *tp, in basic_classify()
62 static void *basic_get(struct tcf_proto *tp, u32 handle) in basic_get()
76 static int basic_init(struct tcf_proto *tp) in basic_init()
108 static void basic_destroy(struct tcf_proto *tp, bool rtnl_held, in basic_destroy()
127 static int basic_delete(struct tcf_proto *tp, void *arg, bool *last, in basic_delete()
147 static int basic_set_parms(struct net *net, struct tcf_proto *tp, in basic_set_parms()
173 struct tcf_proto *tp, unsigned long base, u32 handle, in basic_change()
249 static void basic_walk(struct tcf_proto *tp, struct tcf_walker *arg, in basic_walk()
269 static int basic_dump(struct net *net, struct tcf_proto *t
[all...]
H A Dcls_route.c56 struct tcf_proto *tp;
126 const struct tcf_proto *tp, in route4_classify()
217 static void *route4_get(struct tcf_proto *tp, u32 handle) in route4_get()
243 static int route4_init(struct tcf_proto *tp) in route4_init()
277 static void route4_destroy(struct tcf_proto *tp, bool rtnl_held, in route4_destroy()
313 static int route4_delete(struct tcf_proto *tp, void *arg, bool *last, in route4_delete()
383 static int route4_set_parms(struct net *net, struct tcf_proto *tp, in route4_set_parms()
473 struct tcf_proto *tp, unsigned long base, u32 handle, in route4_change()
572 static void route4_walk(struct tcf_proto *tp, struct tcf_walker *arg, in route4_walk()
599 static int route4_dump(struct net *net, struct tcf_proto *t
[all...]
H A Dcls_u32.c105 const struct tcf_proto *tp, in u32_classify()
288 static void *u32_get(struct tcf_proto *tp, u32 handle) in u32_get()
321 static void *tc_u_common_ptr(const struct tcf_proto *tp) in tc_u_common_ptr()
352 static int u32_init(struct tcf_proto *tp) in u32_init()
450 static int u32_delete_key(struct tcf_proto *tp, struct tc_u_knode *key) in u32_delete_key()
477 static void u32_clear_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h, in u32_clear_hw_hnode()
492 static int u32_replace_hw_hnode(struct tcf_proto *tp, struct tc_u_hnode *h, in u32_replace_hw_hnode()
521 static void u32_remove_hw_knode(struct tcf_proto *tp, struct tc_u_knode *n, in u32_remove_hw_knode()
535 static int u32_replace_hw_knode(struct tcf_proto *tp, struct tc_u_knode *n, in u32_replace_hw_knode()
574 static void u32_clear_hnode(struct tcf_proto *t
[all...]
H A Dcls_flow.c42 struct tcf_proto *tp;
297 const struct tcf_proto *tp, in flow_classify()
390 struct tcf_proto *tp, unsigned long base, in flow_change()
568 static int flow_delete(struct tcf_proto *tp, void *arg, bool *last, in flow_delete()
581 static int flow_init(struct tcf_proto *tp) in flow_init()
593 static void flow_destroy(struct tcf_proto *tp, bool rtnl_held, in flow_destroy()
609 static void *flow_get(struct tcf_proto *tp, u32 handle) in flow_get()
620 static int flow_dump(struct net *net, struct tcf_proto *tp, void *fh, in flow_dump()
681 static void flow_walk(struct tcf_proto *tp, struct tcf_walker *arg, in flow_walk()
/kernel/linux/linux-5.10/include/net/
H A Dpkt_cls.h22 int (*fn)(struct tcf_proto *, void *node, struct tcf_walker *);
38 struct tcf_proto __rcu *filter_chain;
50 struct tcf_proto *tcf_get_next_proto(struct tcf_chain *chain,
51 struct tcf_proto *tp, bool rtnl_held);
54 struct tcf_proto __rcu **p_filter_chain, struct Qdisc *q,
79 int tcf_classify(struct sk_buff *skb, const struct tcf_proto *tp,
83 const struct tcf_proto *tp, struct tcf_result *res,
99 struct tcf_proto __rcu **p_filter_chain, struct Qdisc *q, in tcf_block_get()
141 static inline int tcf_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tcf_classify()
149 const struct tcf_proto *t in tcf_classify_ingress()
[all...]
H A Dsch_generic.h314 const struct tcf_proto *goto_tp;
331 const struct tcf_proto *,
333 int (*init)(struct tcf_proto*);
334 void (*destroy)(struct tcf_proto *tp, bool rtnl_held,
337 void* (*get)(struct tcf_proto*, u32 handle);
338 void (*put)(struct tcf_proto *tp, void *f);
340 struct tcf_proto*, unsigned long,
344 int (*delete)(struct tcf_proto *tp, void *arg,
347 bool (*delete_empty)(struct tcf_proto *tp);
348 void (*walk)(struct tcf_proto *t
389 struct tcf_proto { global() struct
[all...]
H A Dact_api.h103 int bind, bool rtnl_held, struct tcf_proto *tp,
181 int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
188 struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
237 int tcf_action_check_ctrlact(int action, struct tcf_proto *tp,
/kernel/linux/linux-6.6/include/net/
H A Dpkt_cls.h22 int (*fn)(struct tcf_proto *, void *node, struct tcf_walker *);
38 struct tcf_proto __rcu *filter_chain;
50 struct tcf_proto *tcf_get_next_proto(struct tcf_chain *chain,
51 struct tcf_proto *tp);
54 struct tcf_proto __rcu **p_filter_chain, struct Qdisc *q,
63 int police, struct tcf_proto *tp, u32 handle, bool used_action_miss);
83 const struct tcf_proto *tp, struct tcf_result *res,
86 static inline bool tc_cls_stats_dump(struct tcf_proto *tp, in tc_cls_stats_dump()
112 struct tcf_proto __rcu **p_filter_chain, struct Qdisc *q, in tcf_block_get()
143 const struct tcf_proto *t in tcf_classify()
[all...]
H A Dsch_generic.h334 const struct tcf_proto *goto_tp;
346 const struct tcf_proto *,
348 int (*init)(struct tcf_proto*);
349 void (*destroy)(struct tcf_proto *tp, bool rtnl_held,
352 void* (*get)(struct tcf_proto*, u32 handle);
353 void (*put)(struct tcf_proto *tp, void *f);
355 struct tcf_proto*, unsigned long,
359 int (*delete)(struct tcf_proto *tp, void *arg,
362 bool (*delete_empty)(struct tcf_proto *tp);
363 void (*walk)(struct tcf_proto *t
410 struct tcf_proto { global() struct
[all...]
H A Dact_api.h120 struct tcf_proto *tp,
206 int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla,
213 struct tc_action *tcf_action_init_1(struct net *net, struct tcf_proto *tp,
263 int tcf_action_check_ctrlact(int action, struct tcf_proto *tp,
H A Dtc_wrapper.h144 const struct tcf_proto *tp, \
157 static inline int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify()
224 static inline int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify()

Completed in 26 milliseconds

12345