[ovs-dev] [PATCH] ofproto: Change account_cb to use uint64_t.

Ethan Jackson ethan at nicira.com
Fri Feb 25 01:07:36 UTC 2011


This is more consistent with ofproto internals and its users.
---
 ofproto/ofproto.h |    2 +-
 vswitchd/bridge.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h
index 7516068..2828c64 100644
--- a/ofproto/ofproto.h
+++ b/ofproto/ofproto.h
@@ -154,7 +154,7 @@ struct ofhooks {
     void (*account_flow_cb)(const struct flow *, tag_type tags,
                             const struct nlattr *odp_actions,
                             size_t actions_len,
-                            unsigned long long int n_bytes, void *aux);
+                            uint64_t n_bytes, void *aux);
     void (*account_checkpoint_cb)(void *aux);
 };
 void ofproto_revalidate(struct ofproto *, tag_type);
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index a448e05..eadafb0 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -3029,7 +3029,7 @@ static void
 bridge_account_flow_ofhook_cb(const struct flow *flow, tag_type tags,
                               const struct nlattr *actions,
                               size_t actions_len,
-                              unsigned long long int n_bytes, void *br_)
+                              uint64_t n_bytes, void *br_)
 {
     struct bridge *br = br_;
     const struct nlattr *a;
-- 
1.7.4.1





More information about the dev mailing list