]> git.proxmox.com Git - ovs.git/commitdiff
netflow: Make netflow_flow_update() parameter const.
authorJoe Stringer <joestringer@nicira.com>
Fri, 7 Mar 2014 01:20:24 +0000 (17:20 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 11 Mar 2014 22:57:10 +0000 (15:57 -0700)
The 'flow' parameter is not modified, so mark it const.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/netflow.c
ofproto/netflow.h

index 8259cede30b250db560c6580579142853adb0d99..dcbb84a853772a97df8ec770280c1afaea2b9f37 100644 (file)
@@ -170,7 +170,7 @@ gen_netflow_rec(struct netflow *nf, struct netflow_flow *nf_flow,
 }
 
 void
-netflow_flow_update(struct netflow *nf, struct flow *flow,
+netflow_flow_update(struct netflow *nf, const struct flow *flow,
                     ofp_port_t output_iface,
                     const struct dpif_flow_stats *stats)
     OVS_EXCLUDED(mutex)
index c7f2574b85240ad5b43073a98aa778eb6a3ba50d..e89b75e2c87ee57949009587695af0df6d4e72e6 100644 (file)
@@ -55,7 +55,7 @@ void netflow_mask_wc(struct flow *, struct flow_wildcards *);
 
 void netflow_flow_clear(struct netflow *netflow, struct flow *flow);
 
-void netflow_flow_update(struct netflow *nf, struct flow *flow,
+void netflow_flow_update(struct netflow *nf, const struct flow *flow,
                          ofp_port_t output_iface,
                          const struct dpif_flow_stats *);