[ovs-git] Open vSwitch: Better abstract OpenFlow error codes. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Jan 12 23:55:32 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  90bf1e0732ac9b11dd51ca856b635cac1f0269c1 (commit)
      from  e25c55d28f30b537aa657797c41483a9bab59b93 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 90bf1e0732ac9b11dd51ca856b635cac1f0269c1
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=90bf1e0732ac9b11dd51ca856b635cac1f0269c1
Author: Ben Pfaff <blp at nicira.com>
		
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 at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 build-aux/extract-ofp-errors |  243 ++++++++++++++++++--------
 include/openflow/openflow.h  |   77 ---------
 lib/.gitignore               |    2 +-
 lib/automake.mk              |   13 +-
 lib/autopath.c               |    5 +-
 lib/autopath.h               |    4 +-
 lib/bundle.c                 |   24 ++--
 lib/bundle.h                 |    5 +-
 lib/dpif.c                   |   10 +-
 lib/learn.c                  |   27 ++--
 lib/learn.h                  |    4 +-
 lib/learning-switch.c        |    1 +
 lib/multipath.c              |    7 +-
 lib/multipath.h              |    6 +-
 lib/nx-match.c               |   56 +++----
 lib/nx-match.h               |   25 ++--
 lib/ofp-errors.c             |  287 +++++++++++++++++++++++++++++++
 lib/ofp-errors.h             |  389 +++++++++++++++++++++++++++++++++++++++++-
 lib/ofp-print.c              |   40 ++---
 lib/ofp-util.c               |  367 +++++++++-------------------------------
 lib/ofp-util.h               |  174 ++-----------------
 lib/vconn.c                  |   11 +-
 ofproto/connmgr.c            |   21 +--
 ofproto/connmgr.h            |    7 +-
 ofproto/ofproto-dpif.c       |   19 +-
 ofproto/ofproto-provider.h   |   49 +++---
 ofproto/ofproto.c            |  150 ++++++++--------
 ofproto/pktbuf.c             |   13 +-
 ofproto/pktbuf.h             |    8 +-
 tests/ofp-print.at           |   57 +++++-
 tests/ovs-ofctl.at           |   94 +++++-----
 utilities/ovs-ofctl.c        |    7 +-
 32 files changed, 1277 insertions(+), 925 deletions(-)
 create mode 100644 lib/ofp-errors.c


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list