Home
last modified time | relevance | path

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

/linux-4.1.27/include/net/
Dpkt_cls.h71 static inline void tcf_exts_init(struct tcf_exts *exts, int action, int police) in tcf_exts_init() argument
74 exts->type = 0; in tcf_exts_init()
75 INIT_LIST_HEAD(&exts->actions); in tcf_exts_init()
77 exts->action = action; in tcf_exts_init()
78 exts->police = police; in tcf_exts_init()
89 tcf_exts_is_predicative(struct tcf_exts *exts) in tcf_exts_is_predicative() argument
92 return !list_empty(&exts->actions); in tcf_exts_is_predicative()
105 tcf_exts_is_available(struct tcf_exts *exts) in tcf_exts_is_available() argument
108 return tcf_exts_is_predicative(exts); in tcf_exts_is_available()
123 tcf_exts_exec(struct sk_buff *skb, struct tcf_exts *exts, in tcf_exts_exec() argument
[all …]
/linux-4.1.27/net/sched/
Dcls_api.c509 void tcf_exts_destroy(struct tcf_exts *exts) in tcf_exts_destroy() argument
512 tcf_action_destroy(&exts->actions, TCA_ACT_UNBIND); in tcf_exts_destroy()
513 INIT_LIST_HEAD(&exts->actions); in tcf_exts_destroy()
519 struct nlattr *rate_tlv, struct tcf_exts *exts, bool ovr) in tcf_exts_validate() argument
525 INIT_LIST_HEAD(&exts->actions); in tcf_exts_validate()
526 if (exts->police && tb[exts->police]) { in tcf_exts_validate()
527 act = tcf_action_init_1(net, tb[exts->police], rate_tlv, in tcf_exts_validate()
533 act->type = exts->type = TCA_OLD_COMPAT; in tcf_exts_validate()
534 list_add(&act->list, &exts->actions); in tcf_exts_validate()
535 } else if (exts->action && tb[exts->action]) { in tcf_exts_validate()
[all …]
Dcls_cgroup.c23 struct tcf_exts exts; member
62 return tcf_exts_exec(skb, &head->exts, res); in cls_cgroup_classify()
85 tcf_exts_destroy(&head->exts); in cls_cgroup_destroy_rcu()
115 tcf_exts_init(&new->exts, TCA_CGROUP_ACT, TCA_CGROUP_POLICE); in cls_cgroup_change()
134 tcf_exts_change(tp, &new->exts, &e); in cls_cgroup_change()
192 if (tcf_exts_dump(skb, &head->exts) < 0 || in cls_cgroup_dump()
198 if (tcf_exts_dump_stats(skb, &head->exts) < 0) in cls_cgroup_dump()
Dcls_bpf.c41 struct tcf_exts exts; member
84 ret = tcf_exts_exec(skb, &prog->exts, res); in cls_bpf_classify()
116 tcf_exts_destroy(&prog->exts); in cls_bpf_delete_prog()
269 struct tcf_exts exts; in cls_bpf_modify_existing() local
281 tcf_exts_init(&exts, TCA_BPF_ACT, TCA_BPF_POLICE); in cls_bpf_modify_existing()
282 ret = tcf_exts_validate(net, tp, tb, est, &exts, ovr); in cls_bpf_modify_existing()
291 tcf_exts_destroy(&exts); in cls_bpf_modify_existing()
296 tcf_exts_change(tp, &prog->exts, &exts); in cls_bpf_modify_existing()
344 tcf_exts_init(&prog->exts, TCA_BPF_ACT, TCA_BPF_POLICE); in cls_bpf_change()
439 if (tcf_exts_dump(skb, &prog->exts) < 0) in cls_bpf_dump()
[all …]
Dcls_tcindex.c28 struct tcf_exts exts; member
55 return tcf_exts_is_predicative(&r->exts) || r->res.classid; in tcindex_filter_is_set()
103 return tcf_exts_exec(skb, &f->exts, res); in tcindex_classify()
165 tcf_exts_destroy(&r->exts); in tcindex_delete()
204 tcf_exts_init(&r->exts, TCA_TCINDEX_ACT, TCA_TCINDEX_POLICE); in tcindex_filter_result_init()
257 tcf_exts_init(&cp->perfect[i].exts, in tcindex_set_parms()
326 tcf_exts_init(&cp->perfect[i].exts, in tcindex_set_parms()
365 tcf_exts_change(tp, &r->exts, &e); in tcindex_set_parms()
367 tcf_exts_change(tp, &cr.exts, &e); in tcindex_set_parms()
380 tcf_exts_change(tp, &f->result.exts, &r->exts); in tcindex_set_parms()
[all …]
Dcls_basic.c32 struct tcf_exts exts; member
51 r = tcf_exts_exec(skb, &f->exts, res); in basic_classify()
94 tcf_exts_destroy(&f->exts); in basic_delete_filter()
155 tcf_exts_change(tp, &f->exts, &e); in basic_set_parms()
192 tcf_exts_init(&fnew->exts, TCA_BASIC_ACT, TCA_BASIC_POLICE); in basic_change()
270 if (tcf_exts_dump(skb, &f->exts) < 0 || in basic_dump()
276 if (tcf_exts_dump_stats(skb, &f->exts) < 0) in basic_dump()
Dcls_fw.c47 struct tcf_exts exts; member
78 r = tcf_exts_exec(skb, &f->exts, res); in fw_classify()
126 tcf_exts_destroy(&f->exts); in fw_delete_filter()
228 tcf_exts_change(tp, &f->exts, &e); in fw_change_attrs()
273 tcf_exts_init(&fnew->exts, TCA_FW_ACT, TCA_FW_POLICE); in fw_change()
316 tcf_exts_init(&f->exts, TCA_FW_ACT, TCA_FW_POLICE); in fw_change()
376 if (!f->res.classid && !tcf_exts_is_available(&f->exts)) in fw_dump()
398 if (tcf_exts_dump(skb, &f->exts) < 0) in fw_dump()
403 if (tcf_exts_dump_stats(skb, &f->exts) < 0) in fw_dump()
Dcls_route.c56 struct tcf_exts exts; member
116 if (tcf_exts_is_available(&f->exts)) { \
117 int r = tcf_exts_exec(skb, &f->exts, res); \
276 tcf_exts_destroy(&f->exts); in route4_delete_filter()
466 tcf_exts_change(tp, &f->exts, &e); in route4_set_parms()
506 tcf_exts_init(&f->exts, TCA_ROUTE4_ACT, TCA_ROUTE4_POLICE); in route4_change()
634 if (tcf_exts_dump(skb, &f->exts) < 0) in route4_dump()
639 if (tcf_exts_dump_stats(skb, &f->exts) < 0) in route4_dump()
Dcls_rsvp.h96 struct tcf_exts exts; member
124 int r = tcf_exts_exec(skb, &f->exts, res); \
290 tcf_exts_destroy(&f->exts); in rsvp_delete_filter()
499 tcf_exts_init(&n->exts, TCA_RSVP_ACT, TCA_RSVP_POLICE); in rsvp_change()
506 tcf_exts_change(tp, &n->exts, &e); in rsvp_change()
523 tcf_exts_init(&f->exts, TCA_RSVP_ACT, TCA_RSVP_POLICE); in rsvp_change()
577 tcf_exts_change(tp, &f->exts, &e); in rsvp_change()
694 if (tcf_exts_dump(skb, &f->exts) < 0) in rsvp_dump()
699 if (tcf_exts_dump_stats(skb, &f->exts) < 0) in rsvp_dump()
Dcls_flow.c42 struct tcf_exts exts; member
320 r = tcf_exts_exec(skb, &f->exts, res); in flow_classify()
357 tcf_exts_destroy(&f->exts); in flow_destroy_filter()
422 tcf_exts_init(&fnew->exts, TCA_FLOW_ACT, TCA_FLOW_POLICE); in flow_change()
491 tcf_exts_change(tp, &fnew->exts, &e); in flow_change()
631 if (tcf_exts_dump(skb, &f->exts) < 0) in flow_dump()
640 if (tcf_exts_dump_stats(skb, &f->exts) < 0) in flow_dump()
Dcls_u32.c51 struct tcf_exts exts; member
179 r = tcf_exts_exec(skb, &n->exts, res); in u32_classify()
360 tcf_exts_destroy(&n->exts); in u32_destroy_key()
641 tcf_exts_change(tp, &n->exts, &e); in u32_set_parms()
720 tcf_exts_init(&new->exts, TCA_U32_ACT, TCA_U32_POLICE); in u32_init_knode()
848 tcf_exts_init(&n->exts, TCA_U32_ACT, TCA_U32_POLICE); in u32_change()
1003 if (tcf_exts_dump(skb, &n->exts) < 0) in u32_dump()
1044 if (tcf_exts_dump_stats(skb, &n->exts) < 0) in u32_dump()
/linux-4.1.27/net/openvswitch/
Dvport-vxlan.c53 u32 exts; /* VXLAN_F_* in <net/vxlan.h> */ member
79 if (vxlan_port->exts & VXLAN_F_GBP && md->gbp) in vxlan_rcv()
100 if (vxlan_port->exts) { in vxlan_get_options()
101 struct nlattr *exts; in vxlan_get_options() local
103 exts = nla_nest_start(skb, OVS_TUNNEL_ATTR_EXTENSION); in vxlan_get_options()
104 if (!exts) in vxlan_get_options()
107 if (vxlan_port->exts & VXLAN_F_GBP && in vxlan_get_options()
111 nla_nest_end(skb, exts); in vxlan_get_options()
132 struct nlattr *exts[OVS_VXLAN_EXT_MAX+1]; in vxlan_configure_exts() local
139 err = nla_parse_nested(exts, OVS_VXLAN_EXT_MAX, attr, exts_policy); in vxlan_configure_exts()
[all …]
/linux-4.1.27/arch/sh/lib/
Dashiftrt.S97 exts.b r4,r4
115 exts.w r4,r4
Dmemchr.S17 exts.b r5,r5
Dashrsi3.S130 exts.b r0,r0
149 exts.w r0,r0
/linux-4.1.27/fs/efs/
Dinode.c205 efs_extent ext, *exts; in efs_map_block() local
289 exts = (efs_extent *) bh->b_data; in efs_map_block()
291 extent_copy(&(exts[ioffset]), &ext); in efs_map_block()