The 'flow' parameter is not modified, so mark it const.
Signed-off-by: Joe Stringer <[email protected]>
---
ofproto/netflow.c | 2 +-
ofproto/netflow.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ofproto/netflow.c b/ofproto/netflow.c
index 8259ced..dcbb84a 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 c7f2574..e89b75e 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 *);
--
1.7.9.5
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev