ofproto: Correctly fill in table_id in NXST_FLOW replies.
authorBen Pfaff <blp@nicira.com>
Fri, 20 May 2011 23:37:52 +0000 (16:37 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 14 Jun 2011 18:21:49 +0000 (11:21 -0700)
ofproto/ofproto.c

index c6d9143..141aefb 100644 (file)
@@ -1903,7 +1903,7 @@ put_nx_flow_stats(struct ofconn *ofconn, struct rule *rule,
     reply = *replyp;
 
     nfs = ofpbuf_put_uninit(reply, sizeof *nfs);
-    nfs->table_id = 0;
+    nfs->table_id = rule->table_id;
     nfs->pad = 0;
     calc_flow_duration(rule->created, &nfs->duration_sec, &nfs->duration_nsec);
     nfs->cookie = rule->flow_cookie;