ofp-errors: Introduce OF1.6 (proposed) error code for OFPBFC_BAD_VERSION.
authorBen Pfaff <blp@ovn.org>
Thu, 20 Aug 2015 23:44:43 +0000 (16:44 -0700)
committerBen Pfaff <blp@ovn.org>
Mon, 18 Apr 2016 15:50:09 +0000 (08:50 -0700)
ONF-JIRA: EXT-550
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
include/openvswitch/ofp-errors.h
lib/ofp-util.c

index 78c4991..f963d2b 100644 (file)
@@ -704,9 +704,9 @@ enum ofperr {
     /* ONF1.3(2315), OF1.4+(17,15).  Bundle is locking the resource. */
     OFPERR_OFPBFC_BUNDLE_IN_PROGRESS,
 
-    /* NX1.3+(22).  In an OFPT_BUNDLE_ADD_MESSAGE, the OpenFlow version in the
-     * inner and outer messages differ. */
-    OFPERR_NXBFC_BAD_VERSION,
+    /* NX1.4-1.5(22), OF1.6+(17,19).  In an OFPT_BUNDLE_ADD_MESSAGE, the
+     * OpenFlow version in the inner and outer messages differ. */
+    OFPERR_OFPBFC_BAD_VERSION,
 
 /* ## ------------------------- ## */
 /* ## OFPET_FLOW_MONITOR_FAILED ## */
index ef78c73..bb1535d 100644 (file)
@@ -9735,7 +9735,7 @@ ofputil_decode_bundle_add(const struct ofp_header *oh,
 
     msg->msg = b.data;
     if (msg->msg->version != oh->version) {
-        return OFPERR_NXBFC_BAD_VERSION;
+        return OFPERR_OFPBFC_BAD_VERSION;
     }
     size_t inner_len = ntohs(msg->msg->length);
     if (inner_len < sizeof(struct ofp_header) || inner_len > b.size) {