Use a consistent naming convention for counts.
authorJustin Pettit <jpettit@nicira.com>
Mon, 18 Aug 2008 06:15:21 +0000 (23:15 -0700)
committerJustin Pettit <jpettit@nicira.com>
Mon, 18 Aug 2008 06:15:21 +0000 (23:15 -0700)
datapath/datapath.c

index 7c26493..6d9a8fe 100644 (file)
@@ -1279,11 +1279,11 @@ static int table_stats_dump(struct datapath *dp, void *state,
                            void *body, int *body_len)
 {
        struct ofp_table_stats *ots;
-       int nbytes = dp->chain->n_tables * sizeof *ots;
+       int n_bytes = dp->chain->n_tables * sizeof *ots;
        int i;
-       if (nbytes > *body_len)
+       if (n_bytes > *body_len)
                return -ENOBUFS;
-       *body_len = nbytes;
+       *body_len = n_bytes;
        for (i = 0, ots = body; i < dp->chain->n_tables; i++, ots++) {
                struct sw_table_stats stats;
                dp->chain->tables[i]->stats(dp->chain->tables[i], &stats);