diff options
author | Thomas Graf <tgraf@noironetworks.com> | 2014-11-06 09:58:52 -0500 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-11-09 21:58:44 -0500 |
commit | 12eb18f7115884b0c1513dda31b0051121116b3a (patch) | |
tree | 9c6003bff7ab289540d55460d9c0a0e1105a3716 /net/openvswitch/actions.c | |
parent | e8eedb85bd238613332570ac6ae683fee94fbe36 (diff) |
openvswitch: Constify various function arguments
Help produce better optimized code.
Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'net/openvswitch/actions.c')
-rw-r--r-- | net/openvswitch/actions.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/openvswitch/actions.c b/net/openvswitch/actions.c index 10c94ac969f4..394efa67934e 100644 --- a/net/openvswitch/actions.c +++ b/net/openvswitch/actions.c | |||
@@ -69,7 +69,7 @@ static void action_fifo_init(struct action_fifo *fifo) | |||
69 | fifo->tail = 0; | 69 | fifo->tail = 0; |
70 | } | 70 | } |
71 | 71 | ||
72 | static bool action_fifo_is_empty(struct action_fifo *fifo) | 72 | static bool action_fifo_is_empty(const struct action_fifo *fifo) |
73 | { | 73 | { |
74 | return (fifo->head == fifo->tail); | 74 | return (fifo->head == fifo->tail); |
75 | } | 75 | } |
@@ -92,7 +92,7 @@ static struct deferred_action *action_fifo_put(struct action_fifo *fifo) | |||
92 | 92 | ||
93 | /* Return true if fifo is not full */ | 93 | /* Return true if fifo is not full */ |
94 | static struct deferred_action *add_deferred_actions(struct sk_buff *skb, | 94 | static struct deferred_action *add_deferred_actions(struct sk_buff *skb, |
95 | struct sw_flow_key *key, | 95 | const struct sw_flow_key *key, |
96 | const struct nlattr *attr) | 96 | const struct nlattr *attr) |
97 | { | 97 | { |
98 | struct action_fifo *fifo; | 98 | struct action_fifo *fifo; |
@@ -944,7 +944,8 @@ static void process_deferred_actions(struct datapath *dp) | |||
944 | 944 | ||
945 | /* Execute a list of actions against 'skb'. */ | 945 | /* Execute a list of actions against 'skb'. */ |
946 | int ovs_execute_actions(struct datapath *dp, struct sk_buff *skb, | 946 | int ovs_execute_actions(struct datapath *dp, struct sk_buff *skb, |
947 | struct sw_flow_actions *acts, struct sw_flow_key *key) | 947 | const struct sw_flow_actions *acts, |
948 | struct sw_flow_key *key) | ||
948 | { | 949 | { |
949 | int level = this_cpu_read(exec_actions_level); | 950 | int level = this_cpu_read(exec_actions_level); |
950 | int err; | 951 | int err; |