Lines Matching defs:actions

53 static bool actions_may_change_flow(const struct nlattr *actions)
58 nla_for_each_nested(nla, actions, rem) {
2335 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len);
2359 /* The real list of actions follows this attribute. */
2384 /* The real list of actions follows this attribute. */
2404 static void ovs_nla_free_nested_actions(const struct nlattr *actions, int len)
2409 /* Whenever new actions are added, the need to update this
2414 if (!actions)
2417 nla_for_each_attr(a, actions, len, rem) {
2451 ovs_nla_free_nested_actions(sf_acts->actions, sf_acts->actions_len);
2474 int next_offset = offsetof(struct sw_flow_actions, actions) +
2495 memcpy(acts->actions, (*sfa)->actions, (*sfa)->actions_len);
2551 struct nlattr *a = (struct nlattr *) ((unsigned char *)sfa->actions +
2572 const struct nlattr *probability, *actions;
2591 actions = attrs[OVS_SAMPLE_ATTR_ACTIONS];
2592 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN))
2602 * may be modified, the actions can be executed in place.
2605 * Set 'clone_action->exec' to true if the actions can be
2611 arg.exec = last || !actions_may_change_flow(actions);
2619 err = __ovs_nla_copy_actions(net, actions, key, sfa,
2641 const struct nlattr *a, *actions;
2665 actions = attrs[OVS_DEC_TTL_ATTR_ACTION];
2666 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) {
2667 OVS_NLERR(log, "Missing valid actions attribute.");
2679 err = __ovs_nla_copy_actions(net, actions, key, sfa, eth_type,
3022 /* Convert non-masked non-tunnel set actions to masked set actions. */
3112 /* validation done, copy the nested actions. */
3337 /* Disallow subsequent L2.5+ set actions and mpls_pop
3338 * actions once the last MPLS label in the packet is
3340 * the new eth type is valid and thus set actions could
3344 * Support for these actions is planned using packet
3541 struct nlattr *actions;
3549 actions = nla_next(sample_arg, &rem);
3562 err = ovs_nla_put_actions(actions, rem, skb);