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/datapath.h | |
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/datapath.h')
-rw-r--r-- | net/openvswitch/datapath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h index 8de9f7e20ae9..8389c1d68e57 100644 --- a/net/openvswitch/datapath.h +++ b/net/openvswitch/datapath.h | |||
@@ -149,7 +149,7 @@ int lockdep_ovsl_is_held(void); | |||
149 | #define rcu_dereference_ovsl(p) \ | 149 | #define rcu_dereference_ovsl(p) \ |
150 | rcu_dereference_check(p, lockdep_ovsl_is_held()) | 150 | rcu_dereference_check(p, lockdep_ovsl_is_held()) |
151 | 151 | ||
152 | static inline struct net *ovs_dp_get_net(struct datapath *dp) | 152 | static inline struct net *ovs_dp_get_net(const struct datapath *dp) |
153 | { | 153 | { |
154 | return read_pnet(&dp->net); | 154 | return read_pnet(&dp->net); |
155 | } | 155 | } |
@@ -192,7 +192,7 @@ struct sk_buff *ovs_vport_cmd_build_info(struct vport *, u32 pid, u32 seq, | |||
192 | u8 cmd); | 192 | u8 cmd); |
193 | 193 | ||
194 | int ovs_execute_actions(struct datapath *dp, struct sk_buff *skb, | 194 | int ovs_execute_actions(struct datapath *dp, struct sk_buff *skb, |
195 | struct sw_flow_actions *acts, struct sw_flow_key *); | 195 | const struct sw_flow_actions *, struct sw_flow_key *); |
196 | 196 | ||
197 | void ovs_dp_notify_wq(struct work_struct *work); | 197 | void ovs_dp_notify_wq(struct work_struct *work); |
198 | 198 | ||