Home
last modified time | relevance | path

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

/linux/include/net/
A Dpkt_cls.h218 exts->type = 0; in tcf_exts_init()
219 exts->nr_actions = 0; in tcf_exts_init()
220 exts->net = net; in tcf_exts_init()
223 if (!exts->actions) in tcf_exts_init()
226 exts->action = action; in tcf_exts_init()
227 exts->police = police; in tcf_exts_init()
238 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
248 if (exts->net) in tcf_exts_put_net()
249 put_net(exts->net); in tcf_exts_put_net()
315 return tcf_action_exec(skb, exts->actions, exts->nr_actions, res); in tcf_exts_exec()
[all …]
/linux/net/sched/
A Dcls_cgroup.c19 struct tcf_exts exts; member
41 return tcf_exts_exec(skb, &head->exts, res); in cls_cgroup_classify()
60 tcf_exts_destroy(&head->exts); in __cls_cgroup_destroy()
62 tcf_exts_put_net(&head->exts); in __cls_cgroup_destroy()
100 err = tcf_exts_init(&new->exts, net, TCA_CGROUP_ACT, TCA_CGROUP_POLICE); in cls_cgroup_change()
111 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &new->exts, flags, in cls_cgroup_change()
122 tcf_exts_get_net(&head->exts); in cls_cgroup_change()
127 tcf_exts_destroy(&new->exts); in cls_cgroup_change()
139 if (tcf_exts_get_net(&head->exts)) in cls_cgroup_destroy()
182 if (tcf_exts_dump(skb, &head->exts) < 0 || in cls_cgroup_dump()
[all …]
A Dcls_matchall.c17 struct tcf_exts exts; member
40 return tcf_exts_exec(skb, &head->exts, res); in mall_classify()
50 tcf_exts_destroy(&head->exts); in __mall_destroy()
51 tcf_exts_put_net(&head->exts); in __mall_destroy()
100 err = tc_setup_flow_action(&cls_mall.rule->action, &head->exts); in mall_replace_hw_filter()
141 if (tcf_exts_get_net(&head->exts)) in mall_destroy()
215 err = tcf_exts_init(&new->exts, net, TCA_MATCHALL_ACT, 0); in mall_change()
252 tcf_exts_destroy(&new->exts); in mall_change()
339 tcf_exts_stats_update(&head->exts, cls_mall.stats.bytes, in mall_stats_hw_filter()
384 if (tcf_exts_dump(skb, &head->exts)) in mall_dump()
[all …]
A Dcls_fw.c38 struct tcf_exts exts; member
67 r = tcf_exts_exec(skb, &f->exts, res); in fw_classify()
115 tcf_exts_destroy(&f->exts); in __fw_delete_filter()
116 tcf_exts_put_net(&f->exts); in __fw_delete_filter()
145 if (tcf_exts_get_net(&f->exts)) in fw_destroy()
174 tcf_exts_get_net(&f->exts); in fw_delete()
281 tcf_exts_destroy(&fnew->exts); in fw_change()
295 tcf_exts_get_net(&f->exts); in fw_change()
339 tcf_exts_destroy(&f->exts); in fw_change()
406 if (tcf_exts_dump(skb, &f->exts) < 0) in fw_dump()
[all …]
A Dcls_basic.c30 struct tcf_exts exts; member
52 r = tcf_exts_exec(skb, &f->exts, res); in basic_classify()
89 tcf_exts_destroy(&f->exts); in __basic_delete_filter()
91 tcf_exts_put_net(&f->exts); in __basic_delete_filter()
116 if (tcf_exts_get_net(&f->exts)) in basic_destroy()
134 tcf_exts_get_net(&f->exts); in basic_delete()
153 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack); in basic_set_parms()
233 tcf_exts_get_net(&fold->exts); in basic_change()
242 tcf_exts_destroy(&fnew->exts); in basic_change()
312 if (tcf_exts_dump(skb, &f->exts) < 0 || in basic_dump()
[all …]
A Dcls_tcindex.c33 struct tcf_exts exts; member
126 return tcf_exts_exec(skb, &f->exts, res); in tcindex_classify()
162 tcf_exts_destroy(&r->exts); in __tcindex_destroy_rexts()
163 tcf_exts_put_net(&r->exts); in __tcindex_destroy_rexts()
181 tcf_exts_destroy(&f->result.exts); in __tcindex_destroy_fexts()
182 tcf_exts_put_net(&f->result.exts); in __tcindex_destroy_fexts()
231 if (tcf_exts_get_net(&f->result.exts)) in tcindex_delete()
238 if (tcf_exts_get_net(&r->exts)) in tcindex_delete()
491 tcf_exts_change(&r->exts, &e); in tcindex_set_parms()
500 tcf_exts_change(&f->result.exts, &r->exts); in tcindex_set_parms()
[all …]
A Dcls_bpf.c44 struct tcf_exts exts; member
126 ret = tcf_exts_exec(skb, &prog->exts, res); in cls_bpf_classify()
156 cls_bpf.exts = &obj->exts; in cls_bpf_offload_cmd()
231 cls_bpf.exts = &prog->exts; in cls_bpf_offload_update_stats()
267 tcf_exts_destroy(&prog->exts); in __cls_bpf_delete_prog()
268 tcf_exts_put_net(&prog->exts); in __cls_bpf_delete_prog()
293 if (tcf_exts_get_net(&prog->exts)) in __cls_bpf_delete()
519 tcf_exts_get_net(&oldprog->exts); in cls_bpf_change()
534 tcf_exts_destroy(&prog->exts); in cls_bpf_change()
608 if (tcf_exts_dump(skb, &prog->exts) < 0) in cls_bpf_dump()
[all …]
A Dcls_route.c52 struct tcf_exts exts; member
112 if (tcf_exts_has_actions(&f->exts)) { \
113 int r = tcf_exts_exec(skb, &f->exts, res); \
255 tcf_exts_destroy(&f->exts); in __route4_delete_filter()
256 tcf_exts_put_net(&f->exts); in __route4_delete_filter()
298 if (tcf_exts_get_net(&f->exts)) in route4_destroy()
343 tcf_exts_get_net(&f->exts); in route4_delete()
549 tcf_exts_get_net(&fold->exts); in route4_change()
556 tcf_exts_destroy(&f->exts); in route4_change()
629 if (tcf_exts_dump(skb, &f->exts) < 0) in route4_dump()
[all …]
A Dcls_flow.c39 struct tcf_exts exts; member
336 r = tcf_exts_exec(skb, &f->exts, res); in flow_classify()
371 tcf_exts_destroy(&f->exts); in __flow_destroy_filter()
373 tcf_exts_put_net(&f->exts); in __flow_destroy_filter()
441 err = tcf_exts_init(&fnew->exts, net, TCA_FLOW_ACT, TCA_FLOW_POLICE); in flow_change()
553 tcf_exts_get_net(&fold->exts); in flow_change()
559 tcf_exts_destroy(&fnew->exts); in flow_change()
573 tcf_exts_get_net(&f->exts); in flow_delete()
599 if (tcf_exts_get_net(&f->exts)) in flow_destroy()
660 if (tcf_exts_dump(skb, &f->exts) < 0) in flow_dump()
[all …]
A Dcls_rsvp.h92 struct tcf_exts exts; member
120 int r = tcf_exts_exec(skb, &f->exts, res); \
283 tcf_exts_destroy(&f->exts); in __rsvp_delete_filter()
284 tcf_exts_put_net(&f->exts); in __rsvp_delete_filter()
305 if (tcf_exts_get_net(&f->exts)) in rsvp_delete_filter()
520 err = tcf_exts_init(&n->exts, net, TCA_RSVP_ACT, in rsvp_change()
532 tcf_exts_change(&n->exts, &e); in rsvp_change()
605 tcf_exts_change(&f->exts, &e); in rsvp_change()
648 tcf_exts_destroy(&f->exts); in rsvp_change()
724 if (tcf_exts_dump(skb, &f->exts) < 0) in rsvp_dump()
[all …]
A Dcls_api.c3022 if (exts->actions) { in tcf_exts_destroy()
3024 kfree(exts->actions); in tcf_exts_destroy()
3026 exts->nr_actions = 0; in tcf_exts_destroy()
3041 if (exts->police && tb[exts->police]) { in tcf_exts_validate()
3059 exts->nr_actions = 1; in tcf_exts_validate()
3061 } else if (exts->action && tb[exts->action]) { in tcf_exts_validate()
3074 if ((exts->action && tb[exts->action]) || in tcf_exts_validate()
3075 (exts->police && tb[exts->police])) { in tcf_exts_validate()
3111 if (exts->action && tcf_exts_has_actions(exts)) { in tcf_exts_dump()
3152 if (!exts->action || !tcf_exts_has_actions(exts)) in tcf_exts_terse_dump()
[all …]
A Dcls_u32.c47 struct tcf_exts exts; member
181 r = tcf_exts_exec(skb, &n->exts, res); in u32_classify()
393 tcf_exts_destroy(&n->exts); in u32_destroy_key()
394 tcf_exts_put_net(&n->exts); in u32_destroy_key()
461 tcf_exts_get_net(&key->exts); in u32_delete_key()
551 cls_u32.knode.exts = &n->exts; in u32_replace_hw_knode()
583 if (tcf_exts_get_net(&n->exts)) in u32_clear_hnode()
916 tcf_exts_get_net(&n->exts); in u32_change()
1095 tcf_exts_destroy(&n->exts); in u32_change()
1191 cls_u32.knode.exts = &n->exts; in u32_reoffload_knode()
[all …]
A Dcls_flower.c115 struct tcf_exts exts; member
340 return tcf_exts_exec(skb, &f->exts, res); in fl_classify()
417 tcf_exts_destroy(&f->exts); in __fl_destroy_filter()
418 tcf_exts_put_net(&f->exts); in __fl_destroy_filter()
506 tcf_exts_stats_update(&f->exts, cls_flower.stats.bytes, in fl_hw_update_stats()
519 if (tcf_exts_get_net(&f->exts)) in __fl_put()
2027 err = tcf_exts_init(&fnew->exts, net, TCA_FLOWER_ACT, 0); in fl_change()
2256 flow_rule_alloc(tcf_exts_num_actions(&f->exts)); in fl_reoffload()
3096 if (tcf_exts_dump(skb, &f->exts)) in fl_dump()
3101 if (tcf_exts_dump_stats(skb, &f->exts) < 0) in fl_dump()
[all …]
/linux/net/openvswitch/
A Dvport-vxlan.c31 struct nlattr *exts; in vxlan_get_options() local
33 exts = nla_nest_start_noflag(skb, OVS_TUNNEL_ATTR_EXTENSION); in vxlan_get_options()
34 if (!exts) in vxlan_get_options()
41 nla_nest_end(skb, exts); in vxlan_get_options()
54 struct nlattr *exts[OVS_VXLAN_EXT_MAX + 1]; in vxlan_configure_exts() local
60 err = nla_parse_nested_deprecated(exts, OVS_VXLAN_EXT_MAX, attr, in vxlan_configure_exts()
65 if (exts[OVS_VXLAN_EXT_GBP]) in vxlan_configure_exts()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_tc_u32.c96 struct tcf_exts *exts; in fill_action_fields() local
99 exts = cls->knode.exts; in fill_action_fields()
100 if (!tcf_exts_has_actions(exts)) in fill_action_fields()
103 tcf_exts_for_each_action(i, a, exts) { in fill_action_fields()
/linux/arch/arc/kernel/
A Dintc-arcv2.c17 unsigned int pad:3, firq:1, prio:4, exts:8, irqs:8, ver:8; member
19 unsigned int ver:8, irqs:8, exts:8, prio:4, firq:1, pad:3;
/linux/arch/sh/lib/
A Dashiftrt.S76 exts.b r4,r4
94 exts.w r4,r4
A Dashrsi3.S124 exts.b r0,r0
143 exts.w r0,r0
A Dmemchr.S18 exts.b r5,r5
/linux/fs/efs/
A Dinode.c207 efs_extent ext, *exts; in efs_map_block() local
291 exts = (efs_extent *) bh->b_data; in efs_map_block()
293 extent_copy(&(exts[ioffset]), &ext); in efs_map_block()
/linux/drivers/net/ethernet/netronome/nfp/abm/
A Dcls.c27 if (knode->exts && tcf_exts_has_actions(knode->exts)) { in nfp_abm_u32_check_knode()
/linux/drivers/net/ethernet/stmicro/stmmac/
A Dstmmac_tc.c63 struct tcf_exts *exts; in tc_fill_actions() local
66 exts = cls->knode.exts; in tc_fill_actions()
67 if (!tcf_exts_has_actions(exts)) in tc_fill_actions()
72 tcf_exts_for_each_action(i, act, exts) { in tc_fill_actions()
A Dstmmac_selftests.c1089 struct tcf_exts *exts; in stmmac_test_rxp() local
1101 exts = kzalloc(sizeof(*exts), GFP_KERNEL); in stmmac_test_rxp()
1102 if (!exts) { in stmmac_test_rxp()
1122 cls_u32.knode.exts = exts; in stmmac_test_rxp()
1126 exts->nr_actions = nk; in stmmac_test_rxp()
1127 exts->actions = actions; in stmmac_test_rxp()
1159 kfree(exts); in stmmac_test_rxp()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
A Dmain.c134 tcf_exts_has_actions(cls_bpf->exts)) { in nfp_bpf_setup_tc_block_cb()
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_main.c9322 struct tcf_exts *exts, u64 *action, u8 *queue) in parse_tc_actions() argument
9327 if (!tcf_exts_has_actions(exts)) in parse_tc_actions()
9330 tcf_exts_for_each_action(i, a, exts) { in parse_tc_actions()
9355 struct tcf_exts *exts, u64 *action, u8 *queue) in parse_tc_actions() argument
9566 err = parse_tc_actions(adapter, cls->knode.exts, &input->action, in ixgbe_configure_clsu32()

Completed in 77 milliseconds