I felt like working on OpenFlow 1.1 support tonight, so here's an implementation of the OF1.1 ofp_match for Open vSwitch. It's one of the tasks mentioned on http://openvswitch.org/development/openflow-1-x-plan/
Usually, tasks take longer than I predict, but in this case it took me about 4.5 hours (most of which was writing the tests and fixing the bugs found that way) whereas I predicted 2 days for "Encoding and decoding ofp_match". Huh. Ben Pfaff (5): openflow-1.1.h: Fix OFPFW11_* definitions. openflow-1.0: Rename ofp_match to ofp10_match, OFPFW_* to OFPFW10_*. packets: Define IPPROTO_SCTP if not provided by <netinet/in.h>. packets: Add ETH_TYPE_MPLS and ETH_TYPE_MPLS_MCAST. ofp-util: Implement translation to and from OpenFlow 1.1 ofp_match. include/openflow/nicira-ext.h | 6 +- include/openflow/openflow-1.0.h | 58 ++++--- include/openflow/openflow-1.1.h | 22 ++-- lib/flow.h | 5 +- lib/learning-switch.c | 10 +- lib/learning-switch.h | 4 +- lib/ofp-print.c | 44 +++--- lib/ofp-print.h | 6 +- lib/ofp-util.c | 364 +++++++++++++++++++++++++++++++++------ lib/ofp-util.h | 23 ++- lib/packets.h | 6 + ofproto/ofproto-provider.h | 2 +- ofproto/ofproto.c | 2 +- tests/ofp-print.at | 6 +- tests/ovs-ofctl.at | 297 +++++++++++++++++++++++++++++++ tests/test-flows.c | 12 +- utilities/ovs-controller.c | 4 +- utilities/ovs-ofctl.c | 58 ++++++ 18 files changed, 785 insertions(+), 144 deletions(-) -- 1.7.2.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev