summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif-trace.h
diff options
context:
space:
mode:
authorYi-Hung Wei <yihung.wei@gmail.com>2017-06-27 11:11:34 -0700
committerBen Pfaff <blp@ovn.org>2017-07-12 15:46:21 -0700
commit0f2f05bbcf743dc92fc611b7598195bc17302971 (patch)
tree2e5890e9a2519e97df801f2069afc1bdd4b7a3de /ofproto/ofproto-dpif-trace.h
parente6bc8e749381071341c5d16385641e968642c242 (diff)
downloadopenvswitch-0f2f05bbcf743dc92fc611b7598195bc17302971.tar.gz
ofproto/trace: Add --ct-next option to ofproto/trace
Previous patch enables ofproto/trace to automatically trace a flow that involves multiple recirculation on conntrack. However, it always sets the ct_state to trk|est when it processes recirculated conntrack flows. With this patch, users can customize the expected next ct_state in the aforementioned use case. Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto/ofproto-dpif-trace.h')
-rw-r--r--ofproto/ofproto-dpif-trace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif-trace.h b/ofproto/ofproto-dpif-trace.h
index 4c120a54d..5178d227e 100644
--- a/ofproto/ofproto-dpif-trace.h
+++ b/ofproto/ofproto-dpif-trace.h
@@ -72,6 +72,12 @@ struct oftrace_recirc_node {
struct dp_packet *packet;
};
+/* A node within a next_ct_states list. */
+struct oftrace_next_ct_state {
+ struct ovs_list node; /* In next_ct_states. */
+ uint32_t state;
+};
+
void ofproto_dpif_trace_init(void);
struct oftrace_node *oftrace_report(struct ovs_list *, enum oftrace_node_type,