From 885b000fab2673744004b66eddd4569e2f1f9c2e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 14 Aug 2012 17:14:43 -0700 Subject: [PATCH] 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 --- ofproto/ofproto-dpif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index fea4dac32..98e863569 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; -- 2.43.0