Fix handling of OFPP_ANY in OpenFlow 1.1 and later.
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Mon, 26 Nov 2012 16:17:08 +0000 (18:17 +0200)
committerBen Pfaff <blp@nicira.com>
Tue, 27 Nov 2012 16:28:39 +0000 (08:28 -0800)
commit7f05e7abc8fc190c5ff60dd3c3fcd4b9eb5c8dfa
tree719437a68ccf91982bdfcbeee380428927e5c68e
parent558e2cc58e16f6e3cee44926d69d385d84d42521
Fix handling of OFPP_ANY in OpenFlow 1.1 and later.

Add OFPP_ANY to include/openflow/openflow-1.1.h, and allow it as a port in
queue stats request. Make ovs_ofctl use OFPP_ANY instead of OFPP_ALL for queue
stats requests on OF 1.1+.

This patch changes "none" ports print out. "none" is still accepted on input
for backwards compatibility, but it prints out as "ANY". To make this less
confusing, I changed the test cases to use "controller" or "any" instead of
"none". The test case that tests for both "none" and "controller" still tests
for them.

Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
include/openflow/openflow-1.1.h
lib/ofp-parse.c
lib/ofp-print.c
lib/ofp-util.c
lib/ofp-util.h
ofproto/ofproto.c
tests/ofp-print.at
tests/ofproto.at
utilities/ovs-ofctl.c