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 c6d9143041a303cc6f783f2bb80f18f614576ef6..141aefbeeb6286d54d2106cac2dbd7747c223bc3 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;