[ovs-dev] [PATCH v2 07/47] ofp-util: Add command and out_group to struct ofputil_flow_monitor_request

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


This is in preparation for supporting OpenFlow flow monitor request
commands other than OFPFMC_ADD.

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

---
v2
* No change
---
 lib/ofp-util.c | 2 ++
 lib/ofp-util.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 181a464..05cba63 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -5272,7 +5272,9 @@ ofputil_decode_flow_monitor_request(struct ofputil_flow_monitor_request *rq,
     rq->id = ntohl(nfmr->id);
     rq->flags = nx_to_ofp14_flow_monitor_flags(flags);
     rq->out_port = u16_to_ofp(ntohs(nfmr->out_port));
+    rq->out_group = OFPG_ANY;
     rq->table_id = nfmr->table_id;
+    rq->command = OFPFMC14_ADD;
 
     return nx_pull_match(msg, ntohs(nfmr->match_len), &rq->match, NULL, NULL);
 }
diff --git a/lib/ofp-util.h b/lib/ofp-util.h
index 39afa51..ccaf0ad 100644
--- a/lib/ofp-util.h
+++ b/lib/ofp-util.h
@@ -839,7 +839,9 @@ struct ofputil_flow_monitor_request {
     uint32_t id;
     enum ofp14_flow_monitor_flags flags;
     ofp_port_t out_port;
+    uint32_t out_group;
     uint8_t table_id;
+    enum ofp14_flow_monitor_command command;
     struct match match;
 };
 
-- 
2.0.0.rc2




More information about the dev mailing list