| /linux/include/net/ |
| H A D | pkt_cls.h | 64 int tcf_exts_init_ex(struct tcf_exts *exts, struct net *net, int action, 253 static inline int tcf_exts_init(struct tcf_exts *exts, struct net *net, in tcf_exts_init() argument 257 return tcf_exts_init_ex(exts, net, action, police, NULL, 0, false); in tcf_exts_init() 267 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument 270 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net() 271 if (exts->net) in tcf_exts_get_net() 272 netns_tracker_alloc(exts->net, &exts->ns_tracker, GFP_KERNEL); in tcf_exts_get_net() 273 return exts->net != NULL; in tcf_exts_get_net() 279 static inline void tcf_exts_put_net(struct tcf_exts *exts) in tcf_exts_put_net() argument 282 if (exts->net) in tcf_exts_put_net() [all …]
|
| /linux/net/sched/ |
| H A D | cls_cgroup.c | 20 struct tcf_exts exts; member 43 return tcf_exts_exec(skb, &head->exts, res); in cls_cgroup_classify() 62 tcf_exts_destroy(&head->exts); in __cls_cgroup_destroy() 64 tcf_exts_put_net(&head->exts); in __cls_cgroup_destroy() 102 err = tcf_exts_init(&new->exts, net, TCA_CGROUP_ACT, TCA_CGROUP_POLICE); in cls_cgroup_change() 113 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &new->exts, flags, in cls_cgroup_change() 124 tcf_exts_get_net(&head->exts); in cls_cgroup_change() 129 tcf_exts_destroy(&new->exts); in cls_cgroup_change() 141 if (tcf_exts_get_net(&head->exts)) in cls_cgroup_destroy() 184 if (tcf_exts_dump(skb, &head->exts) < 0 || in cls_cgroup_dump() [all …]
|
| H A D | cls_matchall.c | 18 struct tcf_exts exts; member 42 return tcf_exts_exec(skb, &head->exts, res); in mall_classify() 52 tcf_exts_destroy(&head->exts); in __mall_destroy() 53 tcf_exts_put_net(&head->exts); in __mall_destroy() 94 cls_mall.rule = flow_rule_alloc(tcf_exts_num_actions(&head->exts)); in mall_replace_hw_filter() 102 err = tc_setup_offload_action(&cls_mall.rule->action, &head->exts, in mall_replace_hw_filter() 140 if (tcf_exts_get_net(&head->exts)) in mall_destroy() 196 err = tcf_exts_init(&new->exts, net, TCA_MATCHALL_ACT, 0); in mall_change() 211 &new->exts, flags, new->flags, extack); in mall_change() 243 tcf_exts_destroy(&new->exts); in mall_change() [all …]
|
| H A D | cls_fw.c | 39 struct tcf_exts exts; member 69 r = tcf_exts_exec(skb, &f->exts, res); in fw_classify() 121 tcf_exts_destroy(&f->exts); in __fw_delete_filter() 122 tcf_exts_put_net(&f->exts); in __fw_delete_filter() 151 if (tcf_exts_get_net(&f->exts)) in fw_destroy() 180 tcf_exts_get_net(&f->exts); in fw_delete() 214 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &f->exts, flags, in fw_set_parms() 287 err = tcf_exts_init(&fnew->exts, net, TCA_FW_ACT, in fw_change() 296 tcf_exts_destroy(&fnew->exts); in fw_change() 310 tcf_exts_get_net(&f->exts); in fw_change() [all …]
|
| H A D | cls_basic.c | 31 struct tcf_exts exts; member 54 r = tcf_exts_exec(skb, &f->exts, res); in basic_classify() 91 tcf_exts_destroy(&f->exts); in __basic_delete_filter() 93 tcf_exts_put_net(&f->exts); in __basic_delete_filter() 118 if (tcf_exts_get_net(&f->exts)) in basic_destroy() 136 tcf_exts_get_net(&f->exts); in basic_delete() 155 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack); in basic_set_parms() 200 err = tcf_exts_init(&fnew->exts, net, TCA_BASIC_ACT, TCA_BASIC_POLICE); in basic_change() 235 tcf_exts_get_net(&fold->exts); in basic_change() 244 tcf_exts_destroy(&fnew->exts); in basic_change() [all …]
|
| H A D | cls_api.c | 56 const struct tcf_exts *exts; member 77 tcf_exts_miss_cookie_base_alloc(struct tcf_exts *exts, struct tcf_proto *tp, in tcf_exts_miss_cookie_base_alloc() argument 95 n->exts = exts; in tcf_exts_miss_cookie_base_alloc() 103 exts->miss_cookie_node = n; in tcf_exts_miss_cookie_base_alloc() 111 static void tcf_exts_miss_cookie_base_destroy(struct tcf_exts *exts) in tcf_exts_miss_cookie_base_destroy() argument 115 if (!exts->miss_cookie_node) in tcf_exts_miss_cookie_base_destroy() 118 n = exts->miss_cookie_node; in tcf_exts_miss_cookie_base_destroy() 133 tcf_exts_miss_cookie_base_alloc(struct tcf_exts *exts, struct tcf_proto *tp, in tcf_exts_miss_cookie_base_alloc() argument 139 static void tcf_exts_miss_cookie_base_destroy(struct tcf_exts *exts) in tcf_exts_miss_cookie_base_destroy() argument 1748 struct tcf_exts *exts; in __tcf_classify() local [all …]
|
| H A D | cls_bpf.c | 45 struct tcf_exts exts; member 128 ret = tcf_exts_exec(skb, &prog->exts, res); in cls_bpf_classify() 159 cls_bpf.exts = &obj->exts; in cls_bpf_offload_cmd() 235 cls_bpf.exts = &prog->exts; in cls_bpf_offload_update_stats() 271 tcf_exts_destroy(&prog->exts); in __cls_bpf_delete_prog() 272 tcf_exts_put_net(&prog->exts); in __cls_bpf_delete_prog() 297 if (tcf_exts_get_net(&prog->exts)) in __cls_bpf_delete() 450 ret = tcf_exts_init(&prog->exts, net, TCA_BPF_ACT, TCA_BPF_POLICE); in cls_bpf_change() 481 ret = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &prog->exts, in cls_bpf_change() 532 tcf_exts_get_net(&oldprog->exts); in cls_bpf_change() [all …]
|
| H A D | cls_route.c | 53 struct tcf_exts exts; member 118 if (tcf_exts_has_actions(&f->exts)) { \ 119 int r = tcf_exts_exec(skb, &f->exts, res); \ 262 tcf_exts_destroy(&f->exts); in __route4_delete_filter() 263 tcf_exts_put_net(&f->exts); in __route4_delete_filter() 312 if (tcf_exts_get_net(&f->exts)) in route4_destroy() 362 tcf_exts_get_net(&f->exts); in route4_delete() 412 err = tcf_exts_validate(net, tp, tb, est, &f->exts, flags, extack); in route4_set_parms() 531 err = tcf_exts_init(&f->exts, net, TCA_ROUTE4_ACT, TCA_ROUTE4_POLICE); in route4_change() 582 tcf_exts_get_net(&fold->exts); in route4_change() [all …]
|
| H A D | cls_flow.c | 41 struct tcf_exts exts; 343 r = tcf_exts_exec(skb, &f->exts, res); in flow_classify() 379 tcf_exts_destroy(&f->exts); 381 tcf_exts_put_net(&f->exts); in flow_destroy_filter_work() 449 err = tcf_exts_init(&fnew->exts, net, TCA_FLOW_ACT, TCA_FLOW_POLICE); in flow_change() 453 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &fnew->exts, flags, in flow_change() 569 tcf_exts_get_net(&fold->exts); in flow_change() 575 tcf_exts_destroy(&fnew->exts); in flow_change() 589 tcf_exts_get_net(&f->exts); 616 if (tcf_exts_get_net(&f->exts)) in flow_destroy() 40 struct tcf_exts exts; global() member [all...] |
| H A D | cls_u32.c | 48 struct tcf_exts exts; member 191 r = tcf_exts_exec(skb, &n->exts, res); in u32_classify() 406 tcf_exts_destroy(&n->exts); in __u32_destroy_key() 414 tcf_exts_put_net(&n->exts); in u32_destroy_key() 478 tcf_exts_get_net(&key->exts); in u32_delete_key() 568 cls_u32.knode.exts = &n->exts; in u32_replace_hw_knode() 600 if (tcf_exts_get_net(&n->exts)) in u32_clear_hnode() 747 err = tcf_exts_validate_ex(net, tp, tb, est, &n->exts, flags, in u32_set_parms() 860 if (tcf_exts_init(&new->exts, net, TCA_U32_ACT, TCA_U32_POLICE)) { in u32_init_knode() 960 tcf_exts_get_net(&n->exts); in u32_change() [all …]
|
| H A D | cls_flower.c | 125 struct tcf_exts exts; 352 return tcf_exts_exec(skb, &f->exts, res); in fl_classify() 431 tcf_exts_destroy(&f->exts); in __fl_destroy_filter() 432 tcf_exts_put_net(&f->exts); in __fl_destroy_filter() 468 cls_flower.rule = flow_rule_alloc(tcf_exts_num_actions(&f->exts)); in fl_hw_replace_filter() 480 err = tc_setup_offload_action(&cls_flower.rule->action, &f->exts, in fl_hw_replace_filter() 518 tcf_exts_hw_stats_update(&f->exts, &cls_flower.stats, cls_flower.use_act_stats); in fl_hw_update_stats() 526 if (tcf_exts_get_net(&f->exts)) in __fl_put() 551 return f ? &f->exts : NULL; in fl_get_exts() 2443 err = tcf_exts_init_ex(&fnew->exts, ne in fl_change() 129 struct tcf_exts exts; global() member [all...] |
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A 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/arch/arc/kernel/ |
| H A 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/arch/sh/lib/ |
| H A D | ashiftrt.S | 76 exts.b r4,r4 94 exts.w r4,r4
|
| H A D | ashrsi3.S | 124 exts.b r0,r0 143 exts.w r0,r0
|
| H A D | memchr.S | 18 exts.b r5,r5
|
| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | cls.c | 27 if (knode->exts && tcf_exts_has_actions(knode->exts)) { in nfp_abm_u32_check_knode()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_selftests.c | 1070 struct tcf_exts *exts; in stmmac_test_rxp() local 1082 exts = kzalloc_obj(*exts); in stmmac_test_rxp() 1083 if (!exts) { in stmmac_test_rxp() 1103 cls_u32.knode.exts = exts; in stmmac_test_rxp() 1107 exts->nr_actions = nk; in stmmac_test_rxp() 1108 exts->actions = actions; in stmmac_test_rxp() 1138 kfree(exts); in stmmac_test_rxp()
|
| H A 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/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | main.c | 134 tcf_exts_has_actions(cls_bpf->exts)) { in nfp_bpf_setup_tc_block_cb()
|
| /linux/drivers/counter/ |
| H A D | counter-sysfs.c | 804 const struct counter_comp *const exts, in counter_sysfs_exts_add() argument 817 ext = &exts[i]; in counter_sysfs_exts_add()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_main.c | 10128 struct tcf_exts *exts, u64 *action, u8 *queue) in parse_tc_actions() argument 10133 if (!tcf_exts_has_actions(exts)) in parse_tc_actions() 10136 tcf_exts_for_each_action(i, a, exts) { in parse_tc_actions() 10161 struct tcf_exts *exts, u64 *action, u8 *queue) in parse_tc_actions() argument 10372 err = parse_tc_actions(adapter, cls->knode.exts, &input->action, in ixgbe_configure_clsu32()
|