2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

ofp-util: Generalize functions for parsing OF1.3+ properties.

The main effect is to move these functions a little earlier in the file.

Also, OpenFlow 1.4 changed the table-features specific error codes to new
values that apply to all property sets, so this commit updates the error
code names and adds the appropriate OpenFlow 1.4+ codes.

Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Ben Pfaff
2014-05-09 19:29:56 -07:00
parent 9b77a33644
commit 9a4eddbb6e
2 changed files with 104 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
* Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -545,18 +545,46 @@ enum ofperr {
/* OF1.3+(13,1). Invalid metadata mask. */
OFPERR_OFPTFFC_BAD_METADATA,
/* OF1.3+(13,2). Unknown property type. */
OFPERR_OFPTFFC_BAD_TYPE,
/* OF1.3+(13,3). Length problem in properties. */
OFPERR_OFPTFFC_BAD_LEN,
/* OF1.3+(13,4). Unsupported property value. */
OFPERR_OFPTFFC_BAD_ARGUMENT,
/* OF1.3+(13,5). Permissions error. */
OFPERR_OFPTFFC_EPERM,
/* ## ------------------ ## */
/* ## OFPET_BAD_PROPERTY ## */
/* ## ------------------ ## */
/* OF1.3(13,2), OF1.4+(14,0). Unknown property type.
*
* [Known as OFPTFFC_BAD_TYPE in OF1.3.] */
OFPERR_OFPBPC_BAD_TYPE,
/* OF1.3(13,3), OF1.4+(14,1). Length problem in property.
*
* [Known as OFPTFFC_BAD_LEN in OF1.3.] */
OFPERR_OFPBPC_BAD_LEN,
/* OF1.3(13,4), OF1.4+(14,2). Unsupported property value.
*
* [Known as OFPTFFC_BAD_ARGUMENT in OF1.3.] */
OFPERR_OFPBPC_BAD_VALUE,
/* OF1.4+(14,3). Can't handle this many properties. */
OFPERR_OFPBPC_TOO_MANY,
/* OF1.4+(14,4). A property type was duplicated. */
OFPERR_OFPBPC_DUP_TYPE,
/* OF1.4+(14,5). Unknown experimenter id specified. */
OFPERR_OFPBPC_BAD_EXPERIMENTER,
/* OF1.4+(14,6). Unknown exp_type for experimenter id. */
OFPERR_OFPBPC_BAD_EXP_TYPE,
/* OF1.4+(14,7). Unknown value for experimenter id. */
OFPERR_OFPBPC_BAD_EXP_VALUE,
/* OF1.4+(14,8). Permissions error. */
OFPERR_OFPBPC_EPERM,
/* ## -------------------- ## */
/* ## OFPET_BUNDLE_FAILED ## */
/* ## -------------------- ## */