projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a1e67
)
Use a consistent naming convention for counts.
author
Justin Pettit
<jpettit@nicira.com>
Mon, 18 Aug 2008 06:15:21 +0000
(23:15 -0700)
committer
Justin Pettit
<jpettit@nicira.com>
Mon, 18 Aug 2008 06:15:21 +0000
(23:15 -0700)
datapath/datapath.c
patch
|
blob
|
history
diff --git
a/datapath/datapath.c
b/datapath/datapath.c
index 7c264936b0ced813a7bd93a7b2eebdba2153cef6..6d9a8fe7aab260e63355c8756ba869f4d1edc0d4 100644
(file)
--- a/
datapath/datapath.c
+++ b/
datapath/datapath.c
@@
-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);