[ovs-dev] [PATCH v2 45/47] ofp-util: Support encoding of EXT-187 replies

Simon Horman horms at verge.net.au
Tue Jun 10 10:27:49 UTC 2014


Support encoding of EXT-187: flow entry notification extension
(ONF flow monitor) replies.

This re-uses existing Nicira extension code as other than the header
the wire format is the same.

Signed-off-by: Simon Horman <horms at verge.net.au>

---
v2
* First post
---
 lib/ofp-util.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 24c0957..fcce6ee 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -5836,13 +5836,15 @@ ofputil_start_flow_update(enum ofp_version ofp_version, struct list *replies)
     case OFP10_VERSION:
         raw = OFPRAW_NXST_FLOW_MONITOR_REPLY;
         break;
+    case OFP13_VERSION:
+        raw = OFPRAW_ONFST13_FLOW_MONITOR_REPLY;
+        break;
     case OFP14_VERSION:
     case OFP15_VERSION:
         raw = OFPRAW_OFPST14_FLOW_MONITOR_REPLY;
         break;
     case OFP11_VERSION:
     case OFP12_VERSION:
-    case OFP13_VERSION: /* XXX: Use OF extension! */
     default:
         OVS_NOT_REACHED();
     }
@@ -5979,6 +5981,7 @@ ofputil_append_flow_update(const struct ofputil_flow_update *update,
 
     switch (version) {
     case OFP10_VERSION:
+    case OFP13_VERSION:
         ofputil_nx_append_flow_update(update, replies);
         break;
     case OFP14_VERSION:
@@ -5987,7 +5990,6 @@ ofputil_append_flow_update(const struct ofputil_flow_update *update,
         break;
     case OFP11_VERSION:
     case OFP12_VERSION:
-    case OFP13_VERSION: /* XXX: Use OF extension! */
     default:
         OVS_NOT_REACHED();
     }
-- 
2.0.0.rc2




More information about the dev mailing list