From: Joe Stringer Date: Fri, 7 Mar 2014 01:20:24 +0000 (-0800) Subject: netflow: Make netflow_flow_update() parameter const. X-Git-Tag: sliver-openvswitch-2.2.90-1~6^2~150 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=230f02bc4f892170747fcded9afb85be09360c1a netflow: Make netflow_flow_update() parameter const. The 'flow' parameter is not modified, so mark it const. Signed-off-by: Joe Stringer Signed-off-by: Ben Pfaff --- diff --git a/ofproto/netflow.c b/ofproto/netflow.c index 8259cede3..dcbb84a85 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -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) diff --git a/ofproto/netflow.h b/ofproto/netflow.h index c7f2574b8..e89b75e2c 100644 --- a/ofproto/netflow.h +++ b/ofproto/netflow.h @@ -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 *);