summaryrefslogtreecommitdiff
path: root/include/openflow
diff options
context:
space:
mode:
authorSaloni Jain <saloni.jain@tcs.com>2016-02-18 15:54:26 +0530
committerBen Pfaff <blp@ovn.org>2016-02-24 10:55:07 -0800
commit6c6eedc5d6730835a0d9724e2e8cfe9cdf03b07d (patch)
treee1288da88c1656caa1f4426b98645ba98c7a364c /include/openflow
parent1478295a219f24c2296eb887954afac537c3665f (diff)
downloadopenvswitch-6c6eedc5d6730835a0d9724e2e8cfe9cdf03b07d.tar.gz
Implement OFPT_TABLE_STATUS Message.
On change in a table state, the controller needs to be informed with the OFPT_TABLE_STATUS message. The message is sent with reason OFPTR_VACANCY_DOWN or OFPTR_VACANCY_UP in case of change in remaining space eventually crossing any one of the threshold. Signed-off-by: Saloni Jain <saloni.jain@tcs.com> Co-authored-by: Rishi Bamba <rishi.bamba@tcs.com> Signed-off-by: Rishi Bamba <rishi.bamba@tcs.com> [blp@ovn.org added vacancy event initialization and tests and updated NEWS] Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/openflow')
-rw-r--r--include/openflow/openflow-1.4.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/openflow/openflow-1.4.h b/include/openflow/openflow-1.4.h
index 49a4f7b51..4599f9566 100644
--- a/include/openflow/openflow-1.4.h
+++ b/include/openflow/openflow-1.4.h
@@ -157,6 +157,14 @@ struct ofp14_table_desc {
};
OFP_ASSERT(sizeof(struct ofp14_table_desc) == 8);
+/* A table config has changed in the datapath */
+struct ofp14_table_status {
+ uint8_t reason; /* One of OFPTR_*. */
+ uint8_t pad[7]; /* Pad to 64 bits */
+ /* Followed by struct ofp14_table_desc */
+};
+OFP_ASSERT(sizeof(struct ofp14_table_status) == 8);
+
/* ## ---------------- ## */
/* ## ofp14_port_stats ## */
/* ## ---------------- ## */