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

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


Support decoding 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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index c02af59..24c0957 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -5796,7 +5796,8 @@ ofputil_decode_flow_update(struct ofputil_flow_update *update,
 
     if (raw == OFPRAW_OFPST14_FLOW_MONITOR_REPLY) {
         error = ofputil_of14_decode_flow_update(update, msg, ofpacts);
-    } else if (raw == OFPRAW_NXST_FLOW_MONITOR_REPLY) {
+    } else if (raw == OFPRAW_ONFST13_FLOW_MONITOR_REPLY
+               || raw == OFPRAW_NXST_FLOW_MONITOR_REPLY) {
         error = ofputil_nx_decode_flow_update(update, msg, ofpacts);
     } else {
         OVS_NOT_REACHED();
-- 
2.0.0.rc2




More information about the dev mailing list