ofproto-dpif: Fix argument in send_packet() call.
authorBen Pfaff <blp@nicira.com>
Wed, 18 May 2011 23:46:31 +0000 (16:46 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 19 May 2011 17:51:45 +0000 (10:51 -0700)
The second argument to send_packet() is an ODP port, not an OFP port, so
we need to use ODPP_LOCAL instead of OFPP_LOCAL.

ofproto/ofproto-dpif.c

index 36e7213a99a85953f71f44cc068aa722c06a962d..087a8986bdbf42868aabfcf65e412adea7e1930b 100644 (file)
@@ -1590,7 +1590,7 @@ handle_miss_upcall(struct ofproto_dpif *ofproto, struct dpif_upcall *upcall)
     /* Check with in-band control to see if this packet should be sent
      * to the local port regardless of the flow table. */
     if (connmgr_msg_in_hook(ofproto->up.connmgr, &flow, upcall->packet)) {
-        send_packet(ofproto, OFPP_LOCAL, upcall->packet);
+        send_packet(ofproto, ODPP_LOCAL, upcall->packet);
     }
 
     facet = facet_lookup_valid(ofproto, &flow);