ofp-util: Update Capabilities for Open Flow 1.2
authorSimon Horman <horms@verge.net.au>
Mon, 30 Jul 2012 02:03:03 +0000 (11:03 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 31 Jul 2012 04:47:00 +0000 (21:47 -0700)
commit6020298704dccb6d3f058ae854d00df77126704c
tree8092631db1aa08d59808acf12773a5102f6aba7a
parent3f192f2330cf2630c98b587e7fc5cd93165c5b48
ofp-util: Update Capabilities for Open Flow 1.2

There are capabilities which are present in one, two and three
of Open Flow 1.0, 1.1 and 1.2. Update OFPC_COMMON to only include
capabilities that are present in all three Open Flow versions and
add ofputil_capabilities_mask() to return the mask of capabilities
for each version.

This does not cover OFPUTIL_C_STP and OFPUTIL_C_GROUP_STATS, which
both use capability bit 3 and are treated as special cases in
ofputil_encode_switch_features() and ofputil_decode_switch_features().

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-print.c
lib/ofp-util.c
lib/ofp-util.h
tests/ofp-print.at