From b6befc6b064974063a31eda6f1cb4d0d466eb6f2 Mon Sep 17 00:00:00 2001 From: Alex Wang Date: Wed, 8 Jan 2014 16:52:12 -0800 Subject: [PATCH] ofproto/trace: Use final flow to compute "Relevant fields". Commit bcd2633a (ofproto-dpif: Store relevant fields for wildcarding in facet.) introduced the bug that uses original input flow as final flow to compute the "Relevant fields" in ofproto/trace ouput. This commit fixes this bug. Signed-off-by: Alex Wang Signed-off-by: Ben Pfaff --- 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 a3fd792d1..03f784086 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -3870,7 +3870,7 @@ ofproto_trace(struct ofproto_dpif *ofproto, const struct flow *flow, ds_put_char(ds, '\n'); trace_format_flow(ds, 0, "Final flow", &trace); - match_init(&match, flow, &trace.xout.wc); + match_init(&match, &trace.flow, &trace.xout.wc); ds_put_cstr(ds, "Relevant fields: "); match_format(&match, ds, OFP_DEFAULT_PRIORITY); ds_put_char(ds, '\n'); -- 2.20.1