[ovs-dev] [PATCH v3 39/41] ofp-util: Support encoding of EXT-187 replies
Simon Horman
horms at verge.net.au
Mon Jun 16 02:29:59 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 ed06430..82ba7f7 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -5837,13 +5837,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();
}
@@ -5980,6 +5982,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:
@@ -5988,7 +5991,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