[ovs-dev] [RFC 1/4] ofproto/trace: Use final flow to compute "Relevant fields".
Alex Wang
alexw at nicira.com
Thu Oct 17 20:57:55 UTC 2013
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 <alexw at nicira.com>
---
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 8ef1c8c..5dc4ac0 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -5295,7 +5295,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');
--
1.7.9.5
More information about the dev
mailing list