Lines Matching defs:ops

192 	if (act->ops->offload_act_setup) {
194 err = act->ops->offload_act_setup(act, fl_action, NULL,
366 if (p->ops->cleanup)
367 p->ops->cleanup(p);
422 const struct tc_action_ops *ops = a->ops;
427 module_put(ops->owner);
472 if (act->ops->get_fill_size)
473 return act->ops->get_fill_size(act) + sz;
483 if (nla_put_string(skb, TCA_ACT_KIND, a->ops->kind))
587 const struct tc_action_ops *ops,
601 if (nla_put_string(skb, TCA_ACT_KIND, ops->kind))
611 module_put(ops->owner);
637 const struct tc_action_ops *ops,
643 return tcf_del_walker(idrinfo, skb, ops, extack);
677 const struct tc_action_ops *ops,
680 struct tc_action_net *tn = net_generic(net, ops->net_id);
682 if (unlikely(ops->walk))
683 return ops->walk(net, skb, cb, type, ops, extack);
685 return tcf_generic_walker(tn, skb, cb, type, ops, extack);
689 const struct tc_action_ops *ops,
692 struct tc_action_net *tn = net_generic(net, ops->net_id);
694 if (unlikely(ops->lookup))
695 return ops->lookup(net, a, index);
714 struct module *owner = p->ops->owner;
734 struct tc_action **a, const struct tc_action_ops *ops,
737 struct tc_action *p = kzalloc(ops->size, GFP_KERNEL);
775 __module_get(ops->owner);
776 p->ops = ops;
793 const struct tc_action_ops *ops, int bind,
797 return tcf_idr_create(tn, index, est, a, ops, bind,
868 void tcf_idrinfo_destroy(const struct tc_action_ops *ops,
880 module_put(ops->owner);
890 /* since act ops id is stored in pernet subsystem list,
892 * subsystem, so we keep tc action pernet ops id for
945 struct pernet_operations *ops)
953 /* We have to register pernet ops before making the action ops visible,
957 ret = register_pernet_subsys(ops);
961 if (ops->id) {
962 ret = tcf_pernet_add_id_list(*ops->id);
981 if (ops->id)
982 tcf_pernet_del_id_list(*ops->id);
984 unregister_pernet_subsys(ops);
990 struct pernet_operations *ops)
1005 unregister_pernet_subsys(ops);
1006 if (ops->id)
1007 tcf_pernet_del_id_list(*ops->id);
1117 const struct tc_action_ops *ops;
1124 ops = a->ops;
1127 module_put(ops->owner);
1146 const struct tc_action_ops *ops;
1150 ops = a->ops;
1152 module_put(ops->owner);
1159 return a->ops->dump(skb, a, bind, ref);
1433 struct tc_action_ops *ops[TCA_ACT_MAX_PRIO] = {};
1455 ops[i - 1] = a_o;
1459 act = tcf_action_init_1(net, tp, tb[i], est, ops[i - 1],
1501 if (ops[i])
1502 module_put(ops[i]->owner);
1639 const struct tc_action_ops *ops;
1658 ops = tc_lookup_action(tb[TCA_ACT_KIND]);
1659 if (!ops) { /* could happen in batch of actions */
1664 if (__tcf_idr_search(net, ops, &a, index) == 0) {
1669 module_put(ops->owner);
1673 module_put(ops->owner);
1689 const struct tc_action_ops *ops;
1706 ops = tc_lookup_action(kind);
1707 if (!ops) { /*some idjot trying to flush unknown action */
1729 err = __tcf_generic_walker(net, skb, &dcb, RTM_DELACTION, ops, extack);
1739 module_put(ops->owner);
1748 module_put(ops->owner);
1760 const struct tc_action_ops *ops = a->ops;
1770 module_put(ops->owner);
1790 const struct tc_action_ops *ops = action->ops;
1806 module_put(ops->owner);