Implement OpenFlow 1.4+ OFPTC_EVICTION.
authorBen Pfaff <blp@nicira.com>
Fri, 3 Jul 2015 03:33:08 +0000 (20:33 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Jul 2015 15:46:20 +0000 (08:46 -0700)
commit82c22d34b5f459bc968fd268112d1e33bd103943
tree09b9dfd57506dab1db511eb993290d3a4a77f5af
parentf70b94debcce380d3d67e346b7eaf47749e23005
Implement OpenFlow 1.4+ OFPTC_EVICTION.

OpenFlow 1.4 introduces the ability to turn on flow table eviction with an
OFPT_TABLE_MOD message specifying OFPTC_EVICTION.  It also adds related
machinery to other messages that mention OFPTC_* fields.  This commit adds
support for the new feature, implementing it as a second, parallel way to
enable flow table eviction.  It takes more work than it seems like it
should because there is so much weirdness with the treatment of OFPTC_*
flags over the evolution of OpenFlow; please refer to the explanation in
DESIGN.md for more information.

This commit also adds related support to ovs-ofctl, plus tests.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Co-authored-by: Saloni Jain <saloni.jain@tcs.com>
Signed-off-by: Saloni Jain <saloni.jain@tcs.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
17 files changed:
DESIGN.md
NEWS
include/openflow/openflow-1.3.h
lib/ofp-parse.c
lib/ofp-parse.h
lib/ofp-print.c
lib/ofp-util.c
lib/ofp-util.h
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/ofproto.h
tests/ofp-print.at
tests/ofproto.at
utilities/ovs-ofctl.8.in
utilities/ovs-ofctl.c
vswitchd/bridge.c
vswitchd/vswitch.xml