aboutsummaryrefslogtreecommitdiff
path: root/lib/dpif.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-01-31 12:56:49 -0800
committerBen Pfaff <blp@nicira.com>2012-02-01 10:16:28 -0800
commita39edbd4a409ad14b79c2205e340c07185785b92 (patch)
tree75f8f5bfcaa3a1ba53402d73c4e71fd94d838bd2 /lib/dpif.c
parentc240693fc4d23786ab74bebfde45b44efc8ed39b (diff)
Add a few 'const's.
These are useful hints, in these cases, that the caller retains ownership of the passed-in packets. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/dpif.c')
-rw-r--r--lib/dpif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dpif.c b/lib/dpif.c
index 37c00128..56bb1ad6 100644
--- a/lib/dpif.c
+++ b/lib/dpif.c
@@ -675,7 +675,7 @@ dpif_port_poll_wait(const struct dpif *dpif)
* arguments must have been initialized through a call to flow_extract().
*/
void
-dpif_flow_stats_extract(const struct flow *flow, struct ofpbuf *packet,
+dpif_flow_stats_extract(const struct flow *flow, const struct ofpbuf *packet,
struct dpif_flow_stats *stats)
{
memset(stats, 0, sizeof(*stats));