summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoe Stringer <joe@ovn.org>2017-04-28 14:45:21 -0700
committerJoe Stringer <joe@ovn.org>2017-05-01 10:05:18 -0700
commit1746822c4473d1888049eaa690e6a82c8f450b84 (patch)
tree7361d8f3fe10ae66113b13b906c0a665a8e0f062 /include
parent4e3000a09f55cb32c0a7bd4f817bdfa3976e4a20 (diff)
downloadopenvswitch-1746822c4473d1888049eaa690e6a82c8f450b84.tar.gz
ofp-actions: Document that learn(limit=0) is no limit.
The documentation was unclear that specifying a limit of 0 is the same as specifying no limit. Controllers that wish to set a learn limit so that no more than 0 flows are learned may omit the learn action. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Jarno Rajahalme <jarno@ovn.org>
Diffstat (limited to 'include')
-rw-r--r--include/openvswitch/ofp-actions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openvswitch/ofp-actions.h b/include/openvswitch/ofp-actions.h
index e7529bfd6..324aac892 100644
--- a/include/openvswitch/ofp-actions.h
+++ b/include/openvswitch/ofp-actions.h
@@ -762,7 +762,7 @@ struct ofpact_learn {
uint16_t fin_idle_timeout; /* Idle timeout after FIN, if nonzero. */
uint16_t fin_hard_timeout; /* Hard timeout after FIN, if nonzero. */
/* If the number of flows on 'table_id' with 'cookie' exceeds this,
- * the action will not add a new flow. */
+ * the action will not add a new flow. 0 indicates unlimited. */
uint32_t limit;
/* Used only if 'flags' has NX_LEARN_F_WRITE_RESULT. If the execution
* failed to install a new flow because 'limit' is exceeded,