summaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-07-20 15:07:46 -0700
committerEthan Jackson <ethan@nicira.com>2011-07-22 17:46:48 -0700
commita368bb53d9769ae42042e122775672ac9546e3f9 (patch)
tree4cbb05275c16ffd4ab6d5121eeb78accf0c08b63 /ofproto
parent04a85497b994b0cb1c702d4ff8b0d2149767ae0e (diff)
downloadopenvswitch-a368bb53d9769ae42042e122775672ac9546e3f9.tar.gz
bundle: New action "bundle_load".
The bundle_load action behaves the same as the bundle action, except instead of outputting, it writes its result to a register.
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index c88569cf3..61685b726 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -3228,6 +3228,13 @@ do_xlate_actions(const union ofp_action *in, size_t n_in,
slave_enabled_cb,
ctx->ofproto), 0);
break;
+
+ case OFPUTIL_NXAST_BUNDLE_LOAD:
+ ctx->ofproto->has_bundle_action = true;
+ nab = (const struct nx_action_bundle *) ia;
+ bundle_execute_load(nab, &ctx->flow, slave_enabled_cb,
+ ctx->ofproto);
+ break;
}
}
}