Lines Matching defs:act

135 static void offload_action_hw_count_set(struct tc_action *act,
138 act->in_hw_count = hw_count;
141 static void offload_action_hw_count_inc(struct tc_action *act,
144 act->in_hw_count += hw_count;
147 static void offload_action_hw_count_dec(struct tc_action *act,
150 act->in_hw_count = act->in_hw_count > hw_count ?
151 act->in_hw_count - hw_count : 0;
154 static unsigned int tcf_offload_act_num_actions_single(struct tc_action *act)
156 if (is_tcf_pedit(act))
157 return tcf_pedit_nkeys(act);
181 struct tc_action *act,
189 fl_action->index = act->tcfa_index;
190 fl_action->cookie = (unsigned long)act;
192 if (act->ops->offload_act_setup) {
193 spin_lock_bh(&act->tcfa_lock);
194 err = act->ops->offload_act_setup(act, fl_action, NULL,
196 spin_unlock_bh(&act->tcfa_lock);
397 /* Release with strict==1 and bind==0 is only called through act API
400 * also created with act API (unbinding last classifier will destroy the
403 * destroyed by act API while classifier binds to action with same id
432 static size_t tcf_action_shared_attrs_size(const struct tc_action *act)
438 user_cookie = rcu_dereference(act->user_cookie);
468 static size_t tcf_action_fill_size(const struct tc_action *act)
470 size_t sz = tcf_action_shared_attrs_size(act);
472 if (act->ops->get_fill_size)
473 return act->ops->get_fill_size(act) + sz;
911 /* since act ops id is stored in pernet subsystem list,
965 int tcf_register_action(struct tc_action_ops *act,
971 if (!act->act || !act->dump || !act->init)
990 if (act->id == a->id || (strcmp(act->kind, a->kind) == 0)) {
995 list_add_tail(&act->head, &act_base);
1010 int tcf_unregister_action(struct tc_action_ops *act,
1018 if (a == act) {
1019 list_del(&act->head);
1467 struct tc_action *act;
1489 act = tcf_action_init_1(net, tp, tb[i], est, ops[i - 1],
1491 if (IS_ERR(act)) {
1492 err = PTR_ERR(act);
1495 sz += tcf_action_fill_size(act);
1497 actions[i - 1] = act;
1502 if (tc_act_bind(act->tcfa_flags))
1504 if (skip_sw != tc_act_skip_sw(act->tcfa_flags) ||
1505 skip_hw != tc_act_skip_hw(act->tcfa_flags)) {
1512 err = tcf_action_offload_add(act, extack);
1513 if (tc_act_skip_sw(act->tcfa_flags) && err)
1970 struct tc_action *act;
1988 act = tcf_action_get_1(net, tb[i], n, portid, extack);
1989 if (IS_ERR(act)) {
1990 ret = PTR_ERR(act);
1993 attr_size += tcf_action_fill_size(act);
1994 actions[i - 1] = act;