2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

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>
This commit is contained in:
Ben Pfaff
2012-01-12 15:48:19 -08:00
parent e25c55d28f
commit 90bf1e0732
32 changed files with 1273 additions and 921 deletions

View File

@@ -17,6 +17,8 @@
#ifndef LEARN_H
#define LEARN_H 1
#include "ofp-errors.h"
struct ds;
struct flow;
struct ofpbuf;
@@ -28,7 +30,7 @@ struct nx_action_learn;
* See include/openflow/nicira-ext.h for NXAST_LEARN specification.
*/
int learn_check(const struct nx_action_learn *, const struct flow *);
enum ofperr learn_check(const struct nx_action_learn *, const struct flow *);
void learn_execute(const struct nx_action_learn *, const struct flow *,
struct ofputil_flow_mod *);