]> git.proxmox.com Git - ovs.git/blobdiff - ofproto/ofproto.c
ofproto: Implement OF1.4 error code for set-async-config
[ovs.git] / ofproto / ofproto.c
index 4f69cc2c9dcef7b72941273e20bade8118874f7a..5688c6eb9c0b6be7914b141841376b6ad2827839 100644 (file)
@@ -5413,10 +5413,14 @@ handle_nxt_set_packet_in_format(struct ofconn *ofconn,
 static enum ofperr
 handle_nxt_set_async_config(struct ofconn *ofconn, const struct ofp_header *oh)
 {
+    enum ofperr error;
     uint32_t master[OAM_N_TYPES] = {0};
     uint32_t slave[OAM_N_TYPES] = {0};
 
-    ofputil_decode_set_async_config(oh, master, slave, false);
+    error = ofputil_decode_set_async_config(oh, master, slave, false);
+    if (error) {
+        return error;
+    }
 
     ofconn_set_async_config(ofconn, master, slave);
     if (ofconn_get_type(ofconn) == OFCONN_SERVICE &&