Better abstract OpenFlow error codes.
authorBen Pfaff <blp@nicira.com>
Thu, 12 Jan 2012 23:48:19 +0000 (15:48 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 12 Jan 2012 23:54:25 +0000 (15:54 -0800)
commit90bf1e0732ac9b11dd51ca856b635cac1f0269c1
tree05e5852229f3b6f85218a74f9401b3b765459599
parente25c55d28f30b537aa657797c41483a9bab59b93
Better abstract OpenFlow error codes.

This commit switches from using the actual protocol values of error codes
internally in Open vSwitch, to using abstract values that are translated to
and from protocol values at message parsing and serialization time.  I
believe that this makes the code easier to read and to write.

This is also one step along the way toward OpenFlow 1.1 support because
OpenFlow 1.1 renumbered a bunch of error codes.

Signed-off-by: Ben Pfaff <blp@nicira.com>
32 files changed:
build-aux/extract-ofp-errors
include/openflow/openflow.h
lib/.gitignore
lib/automake.mk
lib/autopath.c
lib/autopath.h
lib/bundle.c
lib/bundle.h
lib/dpif.c
lib/learn.c
lib/learn.h
lib/learning-switch.c
lib/multipath.c
lib/multipath.h
lib/nx-match.c
lib/nx-match.h
lib/ofp-errors.c [new file with mode: 0644]
lib/ofp-errors.h
lib/ofp-print.c
lib/ofp-util.c
lib/ofp-util.h
lib/vconn.c
ofproto/connmgr.c
ofproto/connmgr.h
ofproto/ofproto-dpif.c
ofproto/ofproto-provider.h
ofproto/ofproto.c
ofproto/pktbuf.c
ofproto/pktbuf.h
tests/ofp-print.at
tests/ovs-ofctl.at
utilities/ovs-ofctl.c