[ovs-dev] [PATCH 1/3] ofproto: Device stats should include packets generated by userspace/controller
Pravin B Shelar
pshelar at nicira.com
Thu Dec 8 21:17:56 UTC 2011
Here's incremental patch.
---
ofproto/ofproto-dpif.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 14cdeee..1b654fd 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -670,6 +670,7 @@ construct(struct ofproto *ofproto_, int *n_tablesp)
hmap_init(&ofproto->realdev_vid_map);
*n_tablesp = N_TABLES;
+ memset(&ofproto->stats, 0, sizeof ofproto->stats);
return 0;
}
--
1.7.1
More information about the dev
mailing list