ofp-util: Support OFPP_LOCAL in enqueue actions.
[openvswitch] / lib / ofp-util.c
index 3c004dcd175976d3d70b0f08fa18177302229cc9..11b0f159ec805a053d8208ed79019f0aefa39576 100644 (file)
@@ -2211,7 +2211,8 @@ validate_actions(const union ofp_action *actions, size_t n_actions,
 
         case OFPUTIL_OFPAT_ENQUEUE:
             port = ntohs(((const struct ofp_action_enqueue *) a)->port);
-            if (port >= max_ports && port != OFPP_IN_PORT) {
+            if (port >= max_ports && port != OFPP_IN_PORT
+                && port != OFPP_LOCAL) {
                 error = ofp_mkerr(OFPET_BAD_ACTION, OFPBAC_BAD_OUT_PORT);
             }
             break;