Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/net/
Dpkt_cls.h263 static inline int tcf_exts_init(struct tcf_exts *exts, int action, int police) in tcf_exts_init() argument
266 exts->type = 0; in tcf_exts_init()
267 exts->nr_actions = 0; in tcf_exts_init()
268 exts->net = NULL; in tcf_exts_init()
269 exts->actions = kcalloc(TCA_ACT_MAX_PRIO, sizeof(struct tc_action *), in tcf_exts_init()
271 if (!exts->actions) in tcf_exts_init()
274 exts->action = action; in tcf_exts_init()
275 exts->police = police; in tcf_exts_init()
283 static inline bool tcf_exts_get_net(struct tcf_exts *exts) in tcf_exts_get_net() argument
286 exts->net = maybe_get_net(exts->net); in tcf_exts_get_net()
[all …]
/Linux-v4.19/net/sched/
Dcls_cgroup.c23 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, TCA_CGROUP_ACT, TCA_CGROUP_POLICE); in cls_cgroup_change()
112 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &new->exts, ovr, in cls_cgroup_change()
123 tcf_exts_get_net(&head->exts); in cls_cgroup_change()
128 tcf_exts_destroy(&new->exts); in cls_cgroup_change()
140 if (tcf_exts_get_net(&head->exts)) in cls_cgroup_destroy()
180 if (tcf_exts_dump(skb, &head->exts) < 0 || in cls_cgroup_dump()
[all …]
Dcls_matchall.c20 struct tcf_exts exts; member
37 return tcf_exts_exec(skb, &head->exts, res); in mall_classify()
47 tcf_exts_destroy(&head->exts); in __mall_destroy()
48 tcf_exts_put_net(&head->exts); in __mall_destroy()
90 cls_mall.exts = &head->exts; in mall_replace_hw_filter()
121 if (tcf_exts_get_net(&head->exts)) in mall_destroy()
145 err = tcf_exts_validate(net, tp, tb, est, &head->exts, ovr, extack); in mall_set_parms()
188 err = tcf_exts_init(&new->exts, TCA_MATCHALL_ACT, 0); in mall_change()
218 tcf_exts_destroy(&new->exts); in mall_change()
256 cls_mall.exts = &head->exts; in mall_reoffload()
[all …]
Dcls_basic.c33 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()
114 if (tcf_exts_get_net(&f->exts)) in basic_destroy()
132 tcf_exts_get_net(&f->exts); in basic_delete()
151 err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, extack); in basic_set_parms()
196 err = tcf_exts_init(&fnew->exts, TCA_BASIC_ACT, TCA_BASIC_POLICE); in basic_change()
226 tcf_exts_get_net(&fold->exts); in basic_change()
234 tcf_exts_destroy(&fnew->exts); in basic_change()
[all …]
Dcls_fw.c48 struct tcf_exts exts; member
79 r = tcf_exts_exec(skb, &f->exts, res); in fw_classify()
127 tcf_exts_destroy(&f->exts); in __fw_delete_filter()
128 tcf_exts_put_net(&f->exts); in __fw_delete_filter()
156 if (tcf_exts_get_net(&f->exts)) in fw_destroy()
185 tcf_exts_get_net(&f->exts); in fw_delete()
219 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &f->exts, ovr, in fw_set_parms()
286 err = tcf_exts_init(&fnew->exts, TCA_FW_ACT, TCA_FW_POLICE); in fw_change()
294 tcf_exts_destroy(&fnew->exts); in fw_change()
308 tcf_exts_get_net(&f->exts); in fw_change()
[all …]
Dcls_tcindex.c29 struct tcf_exts exts; member
56 return tcf_exts_has_actions(&r->exts) || r->res.classid; in tcindex_filter_is_set()
106 return tcf_exts_exec(skb, &f->exts, res); in tcindex_classify()
141 tcf_exts_destroy(&r->exts); in __tcindex_destroy_rexts()
142 tcf_exts_put_net(&r->exts); in __tcindex_destroy_rexts()
159 tcf_exts_destroy(&f->result.exts); in __tcindex_destroy_fexts()
160 tcf_exts_put_net(&f->result.exts); in __tcindex_destroy_fexts()
209 if (tcf_exts_get_net(&f->result.exts)) in tcindex_delete()
214 if (tcf_exts_get_net(&r->exts)) in tcindex_delete()
258 return tcf_exts_init(&r->exts, TCA_TCINDEX_ACT, TCA_TCINDEX_POLICE); in tcindex_filter_result_init()
[all …]
Dcls_bpf.c47 struct tcf_exts exts; member
131 ret = tcf_exts_exec(skb, &prog->exts, res); in cls_bpf_classify()
163 cls_bpf.exts = &obj->exts; in cls_bpf_offload_cmd()
232 cls_bpf.exts = &prog->exts; in cls_bpf_offload_update_stats()
268 tcf_exts_destroy(&prog->exts); in __cls_bpf_delete_prog()
269 tcf_exts_put_net(&prog->exts); in __cls_bpf_delete_prog()
294 if (tcf_exts_get_net(&prog->exts)) in __cls_bpf_delete()
420 ret = tcf_exts_validate(net, tp, tb, est, &prog->exts, ovr, extack); in cls_bpf_set_parms()
478 ret = tcf_exts_init(&prog->exts, TCA_BPF_ACT, TCA_BPF_POLICE); in cls_bpf_change()
518 tcf_exts_get_net(&oldprog->exts); in cls_bpf_change()
[all …]
Dcls_route.c56 struct tcf_exts exts; member
116 if (tcf_exts_has_actions(&f->exts)) { \
117 int r = tcf_exts_exec(skb, &f->exts, res); \
259 tcf_exts_destroy(&f->exts); in __route4_delete_filter()
260 tcf_exts_put_net(&f->exts); in __route4_delete_filter()
301 if (tcf_exts_get_net(&f->exts)) in route4_destroy()
346 tcf_exts_get_net(&f->exts); in route4_delete()
396 err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, extack); in route4_set_parms()
499 err = tcf_exts_init(&f->exts, TCA_ROUTE4_ACT, TCA_ROUTE4_POLICE); in route4_change()
551 tcf_exts_get_net(&fold->exts); in route4_change()
[all …]
Dcls_api.c2036 void tcf_exts_destroy(struct tcf_exts *exts) in tcf_exts_destroy() argument
2039 tcf_action_destroy(exts->actions, TCA_ACT_UNBIND); in tcf_exts_destroy()
2040 kfree(exts->actions); in tcf_exts_destroy()
2041 exts->nr_actions = 0; in tcf_exts_destroy()
2047 struct nlattr *rate_tlv, struct tcf_exts *exts, bool ovr, in tcf_exts_validate() argument
2055 if (exts->police && tb[exts->police]) { in tcf_exts_validate()
2056 act = tcf_action_init_1(net, tp, tb[exts->police], in tcf_exts_validate()
2062 act->type = exts->type = TCA_OLD_COMPAT; in tcf_exts_validate()
2063 exts->actions[0] = act; in tcf_exts_validate()
2064 exts->nr_actions = 1; in tcf_exts_validate()
[all …]
Dcls_flow.c43 struct tcf_exts exts; member
340 r = tcf_exts_exec(skb, &f->exts, res); in flow_classify()
375 tcf_exts_destroy(&f->exts); in __flow_destroy_filter()
377 tcf_exts_put_net(&f->exts); in __flow_destroy_filter()
443 err = tcf_exts_init(&fnew->exts, TCA_FLOW_ACT, TCA_FLOW_POLICE); in flow_change()
447 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &fnew->exts, ovr, in flow_change()
555 tcf_exts_get_net(&fold->exts); in flow_change()
561 tcf_exts_destroy(&fnew->exts); in flow_change()
575 tcf_exts_get_net(&f->exts); in flow_delete()
600 if (tcf_exts_get_net(&f->exts)) in flow_destroy()
[all …]
Dcls_rsvp.h96 struct tcf_exts exts; member
124 int r = tcf_exts_exec(skb, &f->exts, res); \
287 tcf_exts_destroy(&f->exts); in __rsvp_delete_filter()
288 tcf_exts_put_net(&f->exts); in __rsvp_delete_filter()
309 if (tcf_exts_get_net(&f->exts)) in rsvp_delete_filter()
523 err = tcf_exts_init(&n->exts, TCA_RSVP_ACT, TCA_RSVP_POLICE); in rsvp_change()
534 tcf_exts_change(&n->exts, &e); in rsvp_change()
551 err = tcf_exts_init(&f->exts, TCA_RSVP_ACT, TCA_RSVP_POLICE); in rsvp_change()
607 tcf_exts_change(&f->exts, &e); in rsvp_change()
650 tcf_exts_destroy(&f->exts); in rsvp_change()
[all …]
Dcls_u32.c54 struct tcf_exts exts; member
193 r = tcf_exts_exec(skb, &n->exts, res); in u32_classify()
412 tcf_exts_destroy(&n->exts); in u32_destroy_key()
413 tcf_exts_put_net(&n->exts); in u32_destroy_key()
478 tcf_exts_get_net(&key->exts); in u32_delete_key()
567 cls_u32.knode.exts = &n->exts; in u32_replace_hw_knode()
599 if (tcf_exts_get_net(&n->exts)) in u32_clear_hnode()
778 err = tcf_exts_validate(net, tp, tb, est, &n->exts, ovr, extack); in u32_set_parms()
897 if (tcf_exts_init(&new->exts, TCA_U32_ACT, TCA_U32_POLICE)) { in u32_init_knode()
983 tcf_exts_get_net(&n->exts); in u32_change()
[all …]
Dcls_flower.c95 struct tcf_exts exts; member
214 return tcf_exts_exec(skb, &f->exts, res); in fl_classify()
267 tcf_exts_destroy(&f->exts); in __fl_destroy_filter()
268 tcf_exts_put_net(&f->exts); in __fl_destroy_filter()
292 tc_setup_cb_call(block, &f->exts, TC_SETUP_CLSFLOWER, in fl_hw_destroy_filter()
312 cls_flower.exts = &f->exts; in fl_hw_replace_filter()
315 err = tc_setup_cb_call(block, &f->exts, TC_SETUP_CLSFLOWER, in fl_hw_replace_filter()
339 cls_flower.exts = &f->exts; in fl_hw_update_stats()
342 tc_setup_cb_call(block, &f->exts, TC_SETUP_CLSFLOWER, in fl_hw_update_stats()
350 bool async = tcf_exts_get_net(&f->exts); in __fl_delete()
[all …]
/Linux-v4.19/net/openvswitch/
Dvport-vxlan.c44 struct nlattr *exts; in vxlan_get_options() local
46 exts = nla_nest_start(skb, OVS_TUNNEL_ATTR_EXTENSION); in vxlan_get_options()
47 if (!exts) in vxlan_get_options()
54 nla_nest_end(skb, exts); in vxlan_get_options()
67 struct nlattr *exts[OVS_VXLAN_EXT_MAX + 1]; in vxlan_configure_exts() local
73 err = nla_parse_nested(exts, OVS_VXLAN_EXT_MAX, attr, exts_policy, in vxlan_configure_exts()
78 if (exts[OVS_VXLAN_EXT_GBP]) in vxlan_configure_exts()
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/
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()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32.c95 struct tcf_exts *exts; in fill_action_fields() local
98 exts = cls->knode.exts; in fill_action_fields()
99 if (!tcf_exts_has_actions(exts)) in fill_action_fields()
102 tcf_exts_for_each_action(i, a, exts) { in fill_action_fields()
Dcxgb4_tc_flower.c422 tcf_exts_for_each_action(i, a, cls->exts) { in cxgb4_process_flow_actions()
595 tcf_exts_for_each_action(i, a, cls->exts) { in cxgb4_validate_flow_actions()
846 tcf_exts_stats_update(cls->exts, bytes - ofld_stats->byte_count, in cxgb4_tc_flower_stats()
/Linux-v4.19/arch/arc/kernel/
Dintc-arcv2.c21 unsigned int pad:3, firq:1, prio:4, exts:8, irqs:8, ver:8; member
23 unsigned int ver:8, irqs:8, exts:8, prio:4, firq:1, pad:3;
/Linux-v4.19/arch/sh/lib/
Dashiftrt.S97 exts.b r4,r4
115 exts.w r4,r4
Dashrsi3.S145 exts.b r0,r0
164 exts.w r0,r0
Dmemchr.S18 exts.b r5,r5
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c20 struct tcf_exts *exts, in mlxsw_sp_flower_parse_actions() argument
26 if (!tcf_exts_has_actions(exts)) in mlxsw_sp_flower_parse_actions()
34 tcf_exts_for_each_action(i, a, exts) { in mlxsw_sp_flower_parse_actions()
390 return mlxsw_sp_flower_parse_actions(mlxsw_sp, block, rulei, f->exts, in mlxsw_sp_flower_parse()
489 tcf_exts_stats_update(f->exts, bytes, packets, lastuse); in mlxsw_sp_flower_stats()
/Linux-v4.19/fs/efs/
Dinode.c206 efs_extent ext, *exts; in efs_map_block() local
290 exts = (efs_extent *) bh->b_data; in efs_map_block()
292 extent_copy(&(exts[ioffset]), &ext); in efs_map_block()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c1970 struct tcf_exts *exts) in modify_header_match_supported() argument
1988 tcf_exts_for_each_action(i, a, exts) { in modify_header_match_supported()
2017 struct tcf_exts *exts, in actions_match_supported() argument
2033 return modify_header_match_supported(&parse_attr->spec, exts); in actions_match_supported()
2052 static int parse_tc_nic_actions(struct mlx5e_priv *priv, struct tcf_exts *exts, in parse_tc_nic_actions() argument
2062 if (!tcf_exts_has_actions(exts)) in parse_tc_nic_actions()
2067 tcf_exts_for_each_action(i, a, exts) { in parse_tc_nic_actions()
2130 if (!actions_match_supported(priv, exts, parse_attr, flow)) in parse_tc_nic_actions()
2661 static int parse_tc_fdb_actions(struct mlx5e_priv *priv, struct tcf_exts *exts, in parse_tc_fdb_actions() argument
2674 if (!tcf_exts_has_actions(exts)) in parse_tc_fdb_actions()
[all …]
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.c161 tcf_exts_has_actions(cls_bpf->exts)) { in nfp_bpf_setup_tc_block_cb()

12