Lines Matching refs:conf
47 struct tcf_em_text *conf = data; in em_text_change() local
51 if (len < sizeof(*conf) || len < (sizeof(*conf) + conf->pattern_len)) in em_text_change()
54 if (conf->from_layer > conf->to_layer) in em_text_change()
57 if (conf->from_layer == conf->to_layer && in em_text_change()
58 conf->from_offset > conf->to_offset) in em_text_change()
62 ts_conf = textsearch_prepare(conf->algo, (u8 *) conf + sizeof(*conf), in em_text_change()
63 conf->pattern_len, GFP_KERNEL, flags); in em_text_change()
86 tm->from_offset = conf->from_offset; in em_text_change()
87 tm->to_offset = conf->to_offset; in em_text_change()
88 tm->from_layer = conf->from_layer; in em_text_change()
89 tm->to_layer = conf->to_layer; in em_text_change()
109 struct tcf_em_text conf; in em_text_dump() local
111 strncpy(conf.algo, tm->config->ops->name, sizeof(conf.algo) - 1); in em_text_dump()
112 conf.from_offset = tm->from_offset; in em_text_dump()
113 conf.to_offset = tm->to_offset; in em_text_dump()
114 conf.from_layer = tm->from_layer; in em_text_dump()
115 conf.to_layer = tm->to_layer; in em_text_dump()
116 conf.pattern_len = textsearch_get_pattern_len(tm->config); in em_text_dump()
117 conf.pad = 0; in em_text_dump()
119 if (nla_put_nohdr(skb, sizeof(conf), &conf) < 0) in em_text_dump()
121 if (nla_append(skb, conf.pattern_len, in em_text_dump()