Lines Matching refs:actions

53 static bool actions_may_change_flow(const struct nlattr *actions)  in actions_may_change_flow()  argument
58 nla_for_each_nested(nla, actions, rem) { in actions_may_change_flow()
2332 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len);
2401 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len) in ovs_nla_free_nested_actions() argument
2411 if (!actions) in ovs_nla_free_nested_actions()
2414 nla_for_each_attr(a, actions, len, rem) { in ovs_nla_free_nested_actions()
2448 ovs_nla_free_nested_actions(sf_acts->actions, sf_acts->actions_len); in ovs_nla_free_flow_actions()
2471 int next_offset = offsetof(struct sw_flow_actions, actions) + in reserve_sfa_size()
2483 memcpy(acts->actions, (*sfa)->actions, (*sfa)->actions_len); in reserve_sfa_size()
2539 struct nlattr *a = (struct nlattr *) ((unsigned char *)sfa->actions + in add_nested_action_end()
2560 const struct nlattr *probability, *actions; in validate_and_copy_sample() local
2579 actions = attrs[OVS_SAMPLE_ATTR_ACTIONS]; in validate_and_copy_sample()
2580 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) in validate_and_copy_sample()
2599 arg.exec = last || !actions_may_change_flow(actions); in validate_and_copy_sample()
2607 err = __ovs_nla_copy_actions(net, actions, key, sfa, in validate_and_copy_sample()
2629 const struct nlattr *a, *actions; in validate_and_copy_dec_ttl() local
2653 actions = attrs[OVS_DEC_TTL_ATTR_ACTION]; in validate_and_copy_dec_ttl()
2654 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) { in validate_and_copy_dec_ttl()
2667 err = __ovs_nla_copy_actions(net, actions, key, sfa, eth_type, in validate_and_copy_dec_ttl()
3560 struct nlattr *actions; in sample_action_to_attr() local
3568 actions = nla_next(sample_arg, &rem); in sample_action_to_attr()
3581 err = ovs_nla_put_actions(actions, rem, skb); in sample_action_to_attr()