int
validate_actions(const union ofp_action *actions, size_t n_actions,
- int max_ports)
+ const struct flow *flow OVS_UNUSED, int max_ports)
{
size_t i;
size_t n_actions);
const union ofp_action *actions_next(struct actions_iterator *);
int validate_actions(const union ofp_action *, size_t n_actions,
- int max_ports);
+ const struct flow *, int max_ports);
bool action_outputs_to_port(const union ofp_action *, uint16_t port);
void normalize_match(struct ofp_match *);
/* Extract flow, check actions. */
flow_extract(&payload, 0, ofp_port_to_odp_port(ntohs(opo->in_port)),
&flow);
- error = validate_actions(ofp_actions, n_ofp_actions, p->max_ports);
+ error = validate_actions(ofp_actions, n_ofp_actions, &flow, p->max_ports);
if (error) {
goto exit;
}
return error;
}
- error = validate_actions(fm->actions, fm->n_actions, p->max_ports);
+ error = validate_actions(fm->actions, fm->n_actions,
+ &fm->cr.flow, p->max_ports);
if (error) {
return error;
}