Lines Matching refs:actions

405 int tcf_action_exec(struct sk_buff *skb, const struct list_head *actions,  in tcf_action_exec()  argument
416 list_for_each_entry(a, actions, list) { in tcf_action_exec()
429 int tcf_action_destroy(struct list_head *actions, int bind) in tcf_action_destroy() argument
434 list_for_each_entry_safe(a, tmp, actions, list) { in tcf_action_destroy()
479 tcf_action_dump(struct sk_buff *skb, struct list_head *actions, int bind, int ref) in tcf_action_dump() argument
485 list_for_each_entry(a, actions, list) { in tcf_action_dump()
589 int bind, struct list_head *actions) in tcf_action_init() argument
607 list_add_tail(&act->list, actions); in tcf_action_init()
612 tcf_action_destroy(actions, bind); in tcf_action_init()
660 tca_get_fill(struct sk_buff *skb, struct list_head *actions, u32 portid, u32 seq, in tca_get_fill() argument
680 if (tcf_action_dump(skb, actions, bind, ref) < 0) in tca_get_fill()
695 struct list_head *actions, int event) in act_get_notify() argument
702 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, event, 0, 0) <= 0) { in act_get_notify()
766 static void cleanup_a(struct list_head *actions) in cleanup_a() argument
770 list_for_each_entry_safe(a, tmp, actions, list) { in cleanup_a()
849 tcf_del_notify(struct net *net, struct nlmsghdr *n, struct list_head *actions, in tcf_del_notify() argument
859 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, 0, RTM_DELACTION, in tcf_del_notify()
866 ret = tcf_action_destroy(actions, 0); in tcf_del_notify()
886 LIST_HEAD(actions); in tca_action_gd()
906 list_add_tail(&act->list, &actions); in tca_action_gd()
910 ret = act_get_notify(net, portid, n, &actions, event); in tca_action_gd()
912 ret = tcf_del_notify(net, n, &actions, portid); in tca_action_gd()
918 cleanup_a(&actions); in tca_action_gd()
923 tcf_add_notify(struct net *net, struct nlmsghdr *n, struct list_head *actions, in tcf_add_notify() argument
933 if (tca_get_fill(skb, actions, portid, n->nlmsg_seq, n->nlmsg_flags, in tcf_add_notify()
951 LIST_HEAD(actions); in tcf_action_add()
953 ret = tcf_action_init(net, nla, NULL, NULL, ovr, 0, &actions); in tcf_action_add()
960 ret = tcf_add_notify(net, n, &actions, portid); in tcf_action_add()
961 cleanup_a(&actions); in tcf_action_add()