This patch series enhances the usability of ofproto/trace when a flow hit conntrack actions that involves recirculation. Instead of asking users to run ofproto/trace multiple times to derive the final datapath actions, we keep track of the conntrack actions, and automatically run the recirculation process so that a user only need to execute the ofproto/trace command once. A new option --ct-next is added for ofproto/trace to customize the next ct_state during the trace.
v1 -> v2 - Move ct_state parsing to lib/flow.c instead of lib/conntrack.c - Address various reviewer comments such as ref counting balance, code structure, and typo fixes. v2 -> v3 - Change default ct_state from trk|est to trk|new, and update docs and testcase accordingly. Yi-Hung Wei (3): conntrack: Move ct_state parsing to lib/flow.c ofproto/trace: Add support for tracing conntrack recirculation ofproto/trace: Add --ct-next option to ofproto/trace NEWS | 2 + lib/flow.c | 68 +++++++++++++++ lib/flow.h | 3 + ofproto/ofproto-dpif-rid.c | 13 +++ ofproto/ofproto-dpif-rid.h | 1 + ofproto/ofproto-dpif-trace.c | 204 +++++++++++++++++++++++++++++++++++++------ ofproto/ofproto-dpif-trace.h | 28 ++++++ ofproto/ofproto-dpif-xlate.c | 29 +++++- ofproto/ofproto-dpif-xlate.h | 4 + ofproto/ofproto-unixctl.man | 54 +++++++++++- ovn/utilities/ovn-trace.c | 32 ++----- tests/completion.at | 8 +- tests/ofproto-dpif.at | 66 ++++++++++++-- 13 files changed, 443 insertions(+), 69 deletions(-) -- 2.7.4 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev