mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 18:07:40 +00:00
netflow: Mark some function parameters 'const'.
Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
parent
d33340a56b
commit
44dbb3e4bd
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2008, 2009, 2010, 2011, 2013, 2014 Nicira, Inc.
|
* Copyright (c) 2008, 2009, 2010, 2011, 2013, 2014, 2015 Nicira, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -90,7 +90,7 @@ static void netflow_expire__(struct netflow *, struct netflow_flow *)
|
|||||||
static void netflow_run__(struct netflow *) OVS_REQUIRES(mutex);
|
static void netflow_run__(struct netflow *) OVS_REQUIRES(mutex);
|
||||||
|
|
||||||
void
|
void
|
||||||
netflow_mask_wc(struct flow *flow, struct flow_wildcards *wc)
|
netflow_mask_wc(const struct flow *flow, struct flow_wildcards *wc)
|
||||||
{
|
{
|
||||||
if (flow->dl_type != htons(ETH_TYPE_IP)) {
|
if (flow->dl_type != htons(ETH_TYPE_IP)) {
|
||||||
return;
|
return;
|
||||||
@ -276,7 +276,8 @@ netflow_expire__(struct netflow *nf, struct netflow_flow *nf_flow)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
netflow_flow_clear(struct netflow *nf, struct flow *flow) OVS_EXCLUDED(mutex)
|
netflow_flow_clear(struct netflow *nf, const struct flow *flow)
|
||||||
|
OVS_EXCLUDED(mutex)
|
||||||
{
|
{
|
||||||
struct netflow_flow *nf_flow;
|
struct netflow_flow *nf_flow;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2008, 2009, 2010, 2011, 2013, 2014 Nicira, Inc.
|
* Copyright (c) 2008, 2009, 2010, 2011, 2013, 2014, 2015 Nicira, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -50,9 +50,9 @@ int netflow_set_options(struct netflow *, const struct netflow_options *);
|
|||||||
void netflow_run(struct netflow *);
|
void netflow_run(struct netflow *);
|
||||||
void netflow_wait(struct netflow *);
|
void netflow_wait(struct netflow *);
|
||||||
|
|
||||||
void netflow_mask_wc(struct flow *, struct flow_wildcards *);
|
void netflow_mask_wc(const struct flow *, struct flow_wildcards *);
|
||||||
|
|
||||||
void netflow_flow_clear(struct netflow *netflow, struct flow *flow);
|
void netflow_flow_clear(struct netflow *, const struct flow *);
|
||||||
|
|
||||||
void netflow_flow_update(struct netflow *nf, const struct flow *flow,
|
void netflow_flow_update(struct netflow *nf, const struct flow *flow,
|
||||||
ofp_port_t output_iface,
|
ofp_port_t output_iface,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user