netdev: Map to OpenFlow port for flow lookup
[openvswitch] / lib / bundle.c
index c6b1f75eb8070dbecd136e61838cf900d3b748f6..e0f8e6b6c2e864dafa900080a8e3ed267ddfd861 100644 (file)
@@ -217,7 +217,7 @@ bundle_check(const struct ofpact_bundle *bundle, int max_ports,
 void
 bundle_to_nxast(const struct ofpact_bundle *bundle, struct ofpbuf *openflow)
 {
-    int slaves_len = ROUND_UP(bundle->n_slaves, OFP_ACTION_ALIGN);
+    int slaves_len = ROUND_UP(2 * bundle->n_slaves, OFP_ACTION_ALIGN);
     struct nx_action_bundle *nab;
     ovs_be16 *slaves;
     size_t i;