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:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user