This series implements the possibility to have a limit on the number of
flows learned by a learn action.  After the learn action execution the
pipeline can read the result (to know if the limit was exceeded).

v1->v2:
* 'limit' counts both learn flows and flows installed by controller,
  suggested by Ben.
* Don't keep a reference to the counter in ukeys
* Squash tests, openflow interface changes and ofproto implementation
  into a single commit
* The new cookie-counters module is not used anymore, therefore it's removed
* Fix memory leak in ofproto_flow_mod_learn(): we have to call
  ofproto_flow_mod_uninit() if we don't call ofproto_flow_mod_learn_start().
* Simplify ofp-actions changes according to Ben comments(thanks!)


Daniele Di Proietto (3):
  ofproto-dpif-xlate: Create XC_LEARN entry after learning.
  ofp-actions: Factor out decode_LEARN_{common,spec}().
  ofp-actions: Add limit to learn action.

 include/openvswitch/ofp-actions.h  |  12 +++
 lib/learn.c                        |  24 +++++
 lib/odp-util.h                     |   6 +-
 lib/ofp-actions.c                  | 146 ++++++++++++++++++++++++----
 ofproto/ofproto-dpif-xlate-cache.c |   3 +-
 ofproto/ofproto-dpif-xlate-cache.h |   1 +
 ofproto/ofproto-dpif-xlate.c       |  42 ++++++--
 ofproto/ofproto-provider.h         |   3 +-
 ofproto/ofproto.c                  |  46 +++++++--
 tests/learn.at                     | 191 +++++++++++++++++++++++++++++++++++++
 tests/ofp-actions.at               |  14 +++
 utilities/ovs-ofctl.8.in           |  16 ++++
 12 files changed, 467 insertions(+), 37 deletions(-)

-- 
2.11.0

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to