From: Ben Pfaff Date: Wed, 15 Aug 2012 00:14:43 +0000 (-0700) Subject: ofproto-dpif: Fix "ofproto/trace" of flow for local port. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=885b000fab2673744004b66eddd4569e2f1f9c2e;p=openvswitch ofproto-dpif: Fix "ofproto/trace" of flow for local port. 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 Acked-by: Justin Pettit --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index fea4dac3..98e86356 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -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;