Lines Matching refs:actions

382 int tcf_action_exec(struct sk_buff *skb, const struct list_head *actions,  in tcf_action_exec()  argument
393 list_for_each_entry(a, actions, list) { in tcf_action_exec()
411 int tcf_action_destroy(struct list_head *actions, int bind) in tcf_action_destroy() argument
416 list_for_each_entry_safe(a, tmp, actions, list) { in tcf_action_destroy()
461 tcf_action_dump(struct sk_buff *skb, struct list_head *actions, int bind, int ref) in tcf_action_dump() argument
467 list_for_each_entry(a, actions, list) { in tcf_action_dump()
571 int bind, struct list_head *actions) in tcf_action_init() argument
589 list_add_tail(&act->list, actions); in tcf_action_init()
594 tcf_action_destroy(actions, bind); in tcf_action_init()
642 tca_get_fill(struct sk_buff *skb, struct list_head *actions, u32 portid, u32 seq, in tca_get_fill() argument
662 if (tcf_action_dump(skb, actions, bind, ref) < 0) in tca_get_fill()
677 struct list_head *actions, int event) in act_get_notify() argument
684 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, 0, 0) <= 0) { in act_get_notify()
748 static void cleanup_a(struct list_head *actions) in cleanup_a() argument
752 list_for_each_entry_safe(a, tmp, actions, list) { in cleanup_a()
831 tcf_del_notify(struct net *net, struct nlmsghdr *n, struct list_head *actions, in tcf_del_notify() argument
841 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, RTM_DELACTION, in tcf_del_notify()
848 ret = tcf_action_destroy(actions, 0); in tcf_del_notify()
868 LIST_HEAD(actions); in tca_action_gd()
888 list_add_tail(&act->list, &actions); in tca_action_gd()
892 ret = act_get_notify(net, portid, n, &actions, event); in tca_action_gd()
894 ret = tcf_del_notify(net, n, &actions, portid); in tca_action_gd()
900 cleanup_a(&actions); in tca_action_gd()
905 tcf_add_notify(struct net *net, struct nlmsghdr *n, struct list_head *actions, in tcf_add_notify() argument
915 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify()
933 LIST_HEAD(actions); in tcf_action_add()
935 ret = tcf_action_init(net, nla, NULL, NULL, ovr, 0, &actions); in tcf_action_add()
942 ret = tcf_add_notify(net, n, &actions, portid); in tcf_action_add()
943 cleanup_a(&actions); in tcf_action_add()