aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/flow.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch/flow.h')
-rw-r--r--net/openvswitch/flow.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/openvswitch/flow.h b/net/openvswitch/flow.h
index 3e2cc2202d66..b830d5ff7af4 100644
--- a/net/openvswitch/flow.h
+++ b/net/openvswitch/flow.h
@@ -194,7 +194,7 @@ struct sw_flow_actions {
194 struct nlattr actions[]; 194 struct nlattr actions[];
195}; 195};
196 196
197struct flow_stats { 197struct sw_flow_stats {
198 u64 packet_count; /* Number of packets matched. */ 198 u64 packet_count; /* Number of packets matched. */
199 u64 byte_count; /* Number of bytes matched. */ 199 u64 byte_count; /* Number of bytes matched. */
200 unsigned long used; /* Last used time (in jiffies). */ 200 unsigned long used; /* Last used time (in jiffies). */
@@ -216,7 +216,7 @@ struct sw_flow {
216 struct cpumask cpu_used_mask; 216 struct cpumask cpu_used_mask;
217 struct sw_flow_mask *mask; 217 struct sw_flow_mask *mask;
218 struct sw_flow_actions __rcu *sf_acts; 218 struct sw_flow_actions __rcu *sf_acts;
219 struct flow_stats __rcu *stats[]; /* One for each CPU. First one 219 struct sw_flow_stats __rcu *stats[]; /* One for each CPU. First one
220 * is allocated at flow creation time, 220 * is allocated at flow creation time,
221 * the rest are allocated on demand 221 * the rest are allocated on demand
222 * while holding the 'stats[0].lock'. 222 * while holding the 'stats[0].lock'.
@@ -270,6 +270,7 @@ void ovs_flow_stats_clear(struct sw_flow *);
270u64 ovs_flow_used_time(unsigned long flow_jiffies); 270u64 ovs_flow_used_time(unsigned long flow_jiffies);
271 271
272int ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key); 272int ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key);
273int ovs_flow_key_update_l3l4(struct sk_buff *skb, struct sw_flow_key *key);
273int ovs_flow_key_extract(const struct ip_tunnel_info *tun_info, 274int ovs_flow_key_extract(const struct ip_tunnel_info *tun_info,
274 struct sk_buff *skb, 275 struct sk_buff *skb,
275 struct sw_flow_key *key); 276 struct sw_flow_key *key);