diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2014-09-15 22:20:31 -0400 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-09-16 02:28:13 -0400 |
commit | 83c8df26a3b654871c0503fcf6eac61777e12ea1 (patch) | |
tree | a3746dd3c1a08342635b654cd56df432490fa25f /net/openvswitch/flow.h | |
parent | 2ff3e4e4868675da1024175215991fa6d9856731 (diff) |
openvswitch: refactor ovs flow extract API.
OVS flow extract is called on packet receive or packet
execute code path. Following patch defines separate API
for extracting flow-key in packet execute code path.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Diffstat (limited to 'net/openvswitch/flow.h')
-rw-r--r-- | net/openvswitch/flow.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/openvswitch/flow.h b/net/openvswitch/flow.h index 5e5aaed3a85b..251789b6ec45 100644 --- a/net/openvswitch/flow.h +++ b/net/openvswitch/flow.h | |||
@@ -187,6 +187,10 @@ void ovs_flow_stats_get(const struct sw_flow *, struct ovs_flow_stats *, | |||
187 | void ovs_flow_stats_clear(struct sw_flow *); | 187 | void ovs_flow_stats_clear(struct sw_flow *); |
188 | u64 ovs_flow_used_time(unsigned long flow_jiffies); | 188 | u64 ovs_flow_used_time(unsigned long flow_jiffies); |
189 | 189 | ||
190 | int ovs_flow_extract(struct sk_buff *, u16 in_port, struct sw_flow_key *); | 190 | int ovs_flow_key_extract(struct sk_buff *skb, struct sw_flow_key *key); |
191 | /* Extract key from packet coming from userspace. */ | ||
192 | int ovs_flow_key_extract_userspace(const struct nlattr *attr, | ||
193 | struct sk_buff *skb, | ||
194 | struct sw_flow_key *key); | ||
191 | 195 | ||
192 | #endif /* flow.h */ | 196 | #endif /* flow.h */ |