/linux-6.1.9/include/net/ |
D | pkt_cls.h | 240 static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net, in tcf_exts_init() argument 244 exts->type = 0; in tcf_exts_init() 245 exts->nr_actions = 0; in tcf_exts_init() 249 exts->net = net; in tcf_exts_init() 250 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *), in tcf_exts_init() 252 if (!exts->actions) in tcf_exts_init() 255 exts->action = action; in tcf_exts_init() 256 exts->police = police; in tcf_exts_init() 264 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument 267 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net() [all …]
|
/linux-6.1.9/net/sched/ |
D | cls_cgroup.c | 19 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 …]
|
D | cls_matchall.c | 17 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() 92 cls_mall.rule = flow_rule_alloc(tcf_exts_num_actions(&head->exts)); in mall_replace_hw_filter() 100 err = tc_setup_offload_action(&cls_mall.rule->action, &head->exts, in mall_replace_hw_filter() 138 if (tcf_exts_get_net(&head->exts)) in mall_destroy() 168 err = tcf_exts_validate_ex(net, tp, tb, est, &head->exts, flags, in mall_set_parms() 213 err = tcf_exts_init(&new->exts, net, TCA_MATCHALL_ACT, 0); in mall_change() 250 tcf_exts_destroy(&new->exts); in mall_change() [all …]
|
D | cls_fw.c | 38 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() 208 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &f->exts, flags, in fw_set_parms() 272 err = tcf_exts_init(&fnew->exts, net, TCA_FW_ACT, in fw_change() 281 tcf_exts_destroy(&fnew->exts); in fw_change() 295 tcf_exts_get_net(&f->exts); in fw_change() [all …]
|
D | cls_basic.c | 30 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() 198 err = tcf_exts_init(&fnew->exts, net, TCA_BASIC_ACT, TCA_BASIC_POLICE); in basic_change() 233 tcf_exts_get_net(&fold->exts); in basic_change() 242 tcf_exts_destroy(&fnew->exts); in basic_change() [all …]
|
D | cls_tcindex.c | 33 struct tcf_exts exts; member 62 return tcf_exts_has_actions(&r->exts) || r->res.classid; in tcindex_filter_is_set() 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() 277 return tcf_exts_init(&r->exts, net, TCA_TCINDEX_ACT, in tcindex_filter_result_init() [all …]
|
D | cls_bpf.c | 44 struct tcf_exts exts; member 128 ret = tcf_exts_exec(skb, &prog->exts, res); in cls_bpf_classify() 158 cls_bpf.exts = &obj->exts; in cls_bpf_offload_cmd() 233 cls_bpf.exts = &prog->exts; in cls_bpf_offload_update_stats() 269 tcf_exts_destroy(&prog->exts); in __cls_bpf_delete_prog() 270 tcf_exts_put_net(&prog->exts); in __cls_bpf_delete_prog() 295 if (tcf_exts_get_net(&prog->exts)) in __cls_bpf_delete() 421 ret = tcf_exts_validate(net, tp, tb, est, &prog->exts, flags, in cls_bpf_set_parms() 481 ret = tcf_exts_init(&prog->exts, net, TCA_BPF_ACT, TCA_BPF_POLICE); in cls_bpf_change() 521 tcf_exts_get_net(&oldprog->exts); in cls_bpf_change() [all …]
|
D | cls_route.c | 52 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() 393 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack); in route4_set_parms() 507 err = tcf_exts_init(&f->exts, net, TCA_ROUTE4_ACT, TCA_ROUTE4_POLICE); in route4_change() 559 tcf_exts_get_net(&fold->exts); in route4_change() [all …]
|
D | cls_flow.c | 39 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() 445 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &fnew->exts, flags, 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() [all …]
|
D | cls_rsvp.h | 92 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() 549 err = tcf_exts_init(&f->exts, net, TCA_RSVP_ACT, TCA_RSVP_POLICE); in rsvp_change() 605 tcf_exts_change(&f->exts, &e); in rsvp_change() 648 tcf_exts_destroy(&f->exts); in rsvp_change() [all …]
|
D | cls_api.c | 3035 void tcf_exts_destroy(struct tcf_exts *exts) in tcf_exts_destroy() argument 3038 if (exts->actions) { in tcf_exts_destroy() 3039 tcf_action_destroy(exts->actions, TCA_ACT_UNBIND); in tcf_exts_destroy() 3040 kfree(exts->actions); in tcf_exts_destroy() 3042 exts->nr_actions = 0; in tcf_exts_destroy() 3048 struct nlattr *rate_tlv, struct tcf_exts *exts, in tcf_exts_validate_ex() argument 3057 if (exts->police && tb[exts->police]) { in tcf_exts_validate_ex() 3060 a_o = tc_action_load_ops(tb[exts->police], true, in tcf_exts_validate_ex() 3066 act = tcf_action_init_1(net, tp, tb[exts->police], in tcf_exts_validate_ex() 3073 act->type = exts->type = TCA_OLD_COMPAT; in tcf_exts_validate_ex() [all …]
|
D | cls_u32.c | 47 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() 401 tcf_exts_put_net(&n->exts); in u32_destroy_key() 465 tcf_exts_get_net(&key->exts); in u32_delete_key() 555 cls_u32.knode.exts = &n->exts; in u32_replace_hw_knode() 587 if (tcf_exts_get_net(&n->exts)) in u32_clear_hnode() 721 err = tcf_exts_validate_ex(net, tp, tb, est, &n->exts, flags, in u32_set_parms() 834 if (tcf_exts_init(&new->exts, net, TCA_U32_ACT, TCA_U32_POLICE)) { in u32_init_knode() 922 tcf_exts_get_net(&n->exts); in u32_change() [all …]
|
D | cls_flower.c | 114 struct tcf_exts exts; member 339 return tcf_exts_exec(skb, &f->exts, res); in fl_classify() 416 tcf_exts_destroy(&f->exts); in __fl_destroy_filter() 417 tcf_exts_put_net(&f->exts); in __fl_destroy_filter() 453 cls_flower.rule = flow_rule_alloc(tcf_exts_num_actions(&f->exts)); in fl_hw_replace_filter() 465 err = tc_setup_offload_action(&cls_flower.rule->action, &f->exts, in fl_hw_replace_filter() 503 tcf_exts_hw_stats_update(&f->exts, cls_flower.stats.bytes, in fl_hw_update_stats() 516 if (tcf_exts_get_net(&f->exts)) in __fl_put() 2092 err = tcf_exts_validate_ex(net, tp, tb, est, &f->exts, flags, in fl_set_parms() 2193 err = tcf_exts_init(&fnew->exts, net, TCA_FLOWER_ACT, 0); in fl_change() [all …]
|
/linux-6.1.9/net/openvswitch/ |
D | vport-vxlan.c | 31 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-6.1.9/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_u32.c | 96 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-6.1.9/arch/arc/kernel/ |
D | intc-arcv2.c | 17 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-6.1.9/arch/sh/lib/ |
D | ashiftrt.S | 76 exts.b r4,r4 94 exts.w r4,r4
|
D | ashrsi3.S | 124 exts.b r0,r0 143 exts.w r0,r0
|
D | memchr.S | 18 exts.b r5,r5
|
/linux-6.1.9/fs/efs/ |
D | inode.c | 209 efs_extent ext, *exts; in efs_map_block() local 293 exts = (efs_extent *) bh->b_data; in efs_map_block() 295 extent_copy(&(exts[ioffset]), &ext); in efs_map_block()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/abm/ |
D | cls.c | 27 if (knode->exts && tcf_exts_has_actions(knode->exts)) { in nfp_abm_u32_check_knode()
|
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_selftests.c | 1090 struct tcf_exts *exts; in stmmac_test_rxp() local 1102 exts = kzalloc(sizeof(*exts), GFP_KERNEL); in stmmac_test_rxp() 1103 if (!exts) { in stmmac_test_rxp() 1123 cls_u32.knode.exts = exts; in stmmac_test_rxp() 1127 exts->nr_actions = nk; in stmmac_test_rxp() 1128 exts->actions = actions; in stmmac_test_rxp() 1158 kfree(exts); in stmmac_test_rxp()
|
D | stmmac_tc.c | 63 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()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.c | 134 tcf_exts_has_actions(cls_bpf->exts)) { in nfp_bpf_setup_tc_block_cb()
|
/linux-6.1.9/drivers/counter/ |
D | counter-sysfs.c | 798 const struct counter_comp *const exts, in counter_sysfs_exts_add() argument 811 ext = &exts[i]; in counter_sysfs_exts_add()
|