summaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif.h
diff options
context:
space:
mode:
authorAndy Zhou <azhou@ovn.org>2017-03-09 13:14:27 -0800
committerAndy Zhou <azhou@ovn.org>2017-03-10 17:35:49 -0800
commitb52ac6592fd675b665f8a35acda664b377197ffe (patch)
tree2316c5c4a71967d5b0a61c938102ede737457a52 /ofproto/ofproto-dpif.h
parentbb71c96ef2395e29046df159c6b32c0f35014e91 (diff)
downloadopenvswitch-b52ac6592fd675b665f8a35acda664b377197ffe.tar.gz
ofproto: Probe for sample nesting level.
Add logics to detect the max level of nesting allowed by the sample action implemented in the datapath. Future patch allows xlate code to generate different odp actions based on this information. Signed-off-by: Andy Zhou <azhou@ovn.org> Acked-by: Joe Stringer <joe@ovn.org>
Diffstat (limited to 'ofproto/ofproto-dpif.h')
-rw-r--r--ofproto/ofproto-dpif.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h
index 533fadf66..cc514d245 100644
--- a/ofproto/ofproto-dpif.h
+++ b/ofproto/ofproto-dpif.h
@@ -168,6 +168,9 @@ struct dpif_backer_support {
/* True if the datapath supports OVS_ACTION_ATTR_CLONE action. */
bool clone;
+
+ /* Maximum level of nesting allowed by OVS_ACTION_ATTR_SAMPLE action. */
+ size_t sample_nesting;
};
/* Reasons that we might need to revalidate every datapath flow, and