2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

ofproto-dpif: Use execute_actions to execute controller actions

Now that execute_actions() is available it can be used as a generic
replacement for special-case action execution in
execute_controller_action().

As suggested by Jesse Gross.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Simon Horman
2013-06-05 14:28:50 +09:00
committed by Ben Pfaff
parent 6c13071b37
commit 1ac7c9bdb2
2 changed files with 12 additions and 41 deletions

View File

@@ -170,7 +170,9 @@ odp_execute_actions(void *dp, struct ofpbuf *packet, struct flow *key,
switch ((enum ovs_action_attr) type) {
case OVS_ACTION_ATTR_OUTPUT:
output(dp, packet, nl_attr_get_u32(a));
if (output) {
output(dp, packet, nl_attr_get_u32(a));
}
break;
case OVS_ACTION_ATTR_USERSPACE: {