Home
last modified time | relevance | path

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

12

/net/sched/
Dematch.c95 static inline struct tcf_ematch_ops * tcf_em_lookup(u16 kind) in tcf_em_lookup() argument
101 if (kind == e->kind) { in tcf_em_lookup()
135 if (ops->kind == e->kind) in tcf_em_register()
184 if (em_hdr->kind == TCF_EM_CONTAINER) { in tcf_em_validate()
211 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
217 request_module("ematch-kind-%u", em_hdr->kind); in tcf_em_validate()
219 em->ops = tcf_em_lookup(em_hdr->kind); in tcf_em_validate()
446 .kind = em->ops ? em->ops->kind : TCF_EM_CONTAINER, in tcf_em_tree_dump()
Dact_api.c124 NLA_PUT_STRING(skb, TCA_KIND, a->ops->kind); in tcf_del_walker()
267 if (act->type == a->type || (strcmp(act->kind, a->kind) == 0)) { in tcf_register_action()
299 static struct tc_action_ops *tc_lookup_action_n(char *kind) in tc_lookup_action_n() argument
303 if (kind) { in tc_lookup_action_n()
306 if (strcmp(kind, a->kind) == 0) { in tc_lookup_action_n()
320 static struct tc_action_ops *tc_lookup_action(struct nlattr *kind) in tc_lookup_action() argument
324 if (kind) { in tc_lookup_action()
327 if (nla_strcmp(kind, a->kind) == 0) { in tc_lookup_action()
433 NLA_PUT_STRING(skb, TCA_KIND, a->ops->kind); in tcf_action_dump_1()
484 struct nlattr *kind; in tcf_action_init_1() local
[all …]
Dcls_api.c42 static struct tcf_proto_ops *tcf_proto_lookup_ops(struct nlattr *kind) in tcf_proto_lookup_ops() argument
46 if (kind) { in tcf_proto_lookup_ops()
49 if (nla_strcmp(kind, t->kind) == 0) { in tcf_proto_lookup_ops()
69 if (!strcmp(ops->kind, t->kind)) in register_tcf_proto_ops()
231 struct nlattr *kind = tca[TCA_KIND]; in tc_ctl_tfilter() local
234 if (kind != NULL && in tc_ctl_tfilter()
235 nla_strlcpy(name, kind, IFNAMSIZ) < IFNAMSIZ) { in tc_ctl_tfilter()
239 tp_ops = tcf_proto_lookup_ops(kind); in tc_ctl_tfilter()
274 } else if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], tp->ops->kind)) in tc_ctl_tfilter()
344 NLA_PUT_STRING(skb, TCA_KIND, tp->ops->kind); in tcf_fill_node()
Dem_meta.c96 return TCF_META_ID(v->hdr.kind); in meta_id()
101 return TCF_META_TYPE(v->hdr.kind); in meta_type()
788 if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) || in em_meta_change()
789 TCF_META_TYPE(hdr->left.kind) > TCF_META_TYPE_MAX || in em_meta_change()
790 TCF_META_ID(hdr->left.kind) > TCF_META_ID_MAX || in em_meta_change()
791 TCF_META_ID(hdr->right.kind) > TCF_META_ID_MAX) in em_meta_change()
851 .kind = TCF_EM_META,
Dem_u32.c42 .kind = TCF_EM_U32,
Dem_cmp.c76 .kind = TCF_EM_CMP,
Dem_nbyte.c58 .kind = TCF_EM_NBYTE,
Dsch_api.c258 static struct Qdisc_ops *qdisc_lookup_ops(struct nlattr *kind) in qdisc_lookup_ops() argument
262 if (kind) { in qdisc_lookup_ops()
265 if (nla_strcmp(kind, q->id) == 0) { in qdisc_lookup_ops()
750 struct nlattr *kind = tca[TCA_KIND]; in qdisc_create() local
755 ops = qdisc_lookup_ops(kind); in qdisc_create()
757 if (ops == NULL && kind != NULL) { in qdisc_create()
759 if (nla_strlcpy(name, kind, IFNAMSIZ) < IFNAMSIZ) { in qdisc_create()
771 ops = qdisc_lookup_ops(kind); in qdisc_create()
Dem_text.c133 .kind = TCF_EM_TEXT,
Dact_simple.c187 .kind = "simple",
Dact_skbedit.c176 .kind = "skbedit",
Dcls_cgroup.c268 .kind = "cgroup",
Dact_gact.c185 .kind = "gact",
Dact_mirred.c230 .kind = "mirred",
Dact_pedit.c231 .kind = "pedit",
Dcls_basic.c278 .kind = "basic",
Dact_nat.c302 .kind = "nat",
Dact_ipt.c286 .kind = "ipt",
Dcls_fw.c375 .kind = "fw",
Dact_police.c372 .kind = "police",
Dcls_tcindex.c481 .kind = "tcindex",
/net/core/
Drtnetlink.c328 static const struct rtnl_link_ops *rtnl_link_ops_get(const char *kind) in rtnl_link_ops_get() argument
333 if (!strcmp(ops->kind, kind)) in rtnl_link_ops_get()
348 nlmsg_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size()
371 if (nla_put_string(skb, IFLA_INFO_KIND, ops->kind) < 0) in rtnl_link_fill()
1040 char kind[MODULE_NAME_LEN]; in rtnl_newlink() local
1078 nla_strlcpy(kind, linkinfo[IFLA_INFO_KIND], sizeof(kind)); in rtnl_newlink()
1079 ops = rtnl_link_ops_get(kind); in rtnl_newlink()
1081 kind[0] = '\0'; in rtnl_newlink()
1136 if (kind[0]) { in rtnl_newlink()
1138 request_module("rtnl-link-%s", kind); in rtnl_newlink()
[all …]
/net/rfkill/
DKconfig25 need a some kind of userspace application to control
/net/8021q/
Dvlan_netlink.c215 .kind = "vlan",
/net/ax25/
DKconfig29 use a low speed TNC (a Terminal Node Controller acts as a kind of

12