ofproto-dpif: Fix "ofproto/trace" of flow for local port.
authorBen Pfaff <blp@nicira.com>
Wed, 15 Aug 2012 00:14:43 +0000 (17:14 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 29 Oct 2012 23:16:39 +0000 (16:16 -0700)
The 'in_port' variable is an OpenFlow port, not an ODP port, so we should
not translate it to ODP.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c

index fea4dac3235675a147acb2dc9bb3a7ca8ca625b4..98e863569d7cf40b44f7fc04d2426d783ade96e4 100644 (file)
@@ -6795,7 +6795,7 @@ ofproto_unixctl_trace(struct unixctl_conn *conn, int argc, const char *argv[],
         const char *tun_id_s = argv[3];
         const char *in_port_s = argv[4];
         const char *packet_s = argv[5];
-        uint16_t in_port = ofp_port_to_odp_port(atoi(in_port_s));
+        uint16_t in_port = atoi(in_port_s);
         ovs_be64 tun_id = htonll(strtoull(tun_id_s, NULL, 0));
         uint32_t priority = atoi(priority_s);
         const char *msg;