Lines Matching refs:ops
117 * @ops: ematch operations lookup table
120 * The given @ops must have kind set to a unique identifier and the
126 int tcf_em_register(struct tcf_ematch_ops *ops)
131 if (ops->match == NULL)
136 if (ops->kind == e->kind)
139 list_add_tail(&ops->link, &ematch_ops);
150 * @ops: ematch operations lookup table
153 * for examples when the module gets unloaded. The @ops parameter must be
158 void tcf_em_unregister(struct tcf_ematch_ops *ops)
161 list_del(&ops->link);
211 * module is held if the ops field is non zero. */
212 em->ops = tcf_em_lookup(em_hdr->kind);
214 if (em->ops == NULL) {
220 em->ops = tcf_em_lookup(em_hdr->kind);
221 if (em->ops) {
225 module_put(em->ops->owner);
234 if (em->ops->datalen && data_len < em->ops->datalen)
237 if (em->ops->change) {
238 err = em->ops->change(tp, data, data_len, em);
398 if (em->ops) {
399 if (em->ops->destroy)
400 em->ops->destroy(tp, em);
403 module_put(em->ops->owner);
447 .kind = em->ops ? em->ops->kind : TCF_EM_CONTAINER,
454 if (em->ops && em->ops->dump) {
455 if (em->ops->dump(skb, em) < 0)
480 int r = em->ops->match(skb, em, info);