[ovs-dev] [PATCH v2 28/47] ofp-parse: Allow parsing of flow monitor request's only_own flag
Simon Horman
horms at verge.net.au
Tue Jun 10 10:27:32 UTC 2014
This has the effect of exposing an new "!other" argument to
ovs-ofctl's monitor subcommand for use with OpenFlow1.4+.
A subsequent patch will update the documentation for ovs-ofctl.
Signed-off-by: Simon Horman <horms at verge.net.au>
---
v2
* No change
---
lib/ofp-parse.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c
index 7edca38..74d3f72 100644
--- a/lib/ofp-parse.c
+++ b/lib/ofp-parse.c
@@ -1774,6 +1774,9 @@ parse_flow_monitor_request__(struct ofputil_flow_monitor_request *fmr,
fmr->flags &= ~OFPFMF14_INSTRUCTIONS;
} else if (!strcmp(name, "!own")) {
fmr->flags |= OFPFMF14_NO_ABBREV;
+ } else if (!strcmp(name, "!other")) {
+ fmr->flags |= OFPFMF14_ONLY_OWN;
+ *usable_protocols &= OFPUTIL_P_OF14_UP;
} else if (parse_protocol(name, &p)) {
match_set_dl_type(&fmr->match, htons(p->dl_type));
if (p->nw_proto) {
--
2.0.0.rc2
More information about the dev
mailing list