summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2016-01-27 15:46:41 -0800
committerBen Pfaff <blp@ovn.org>2016-02-19 12:54:45 -0800
commit2123bc8c0991e82b43c396cf986fd651f2810c1e (patch)
tree1d6f2ed9d27af330bba4d068513ced6ea8b901c8 /include
parent4077f060cc835965b9a2ca0ce11779dfcd0f5742 (diff)
downloadopenvswitch-2123bc8c0991e82b43c396cf986fd651f2810c1e.tar.gz
ofp-msgs: Add support for ONF extension messages.
ONF introduced a number of "standard extensions" that use its own vendor (experimenter) ID. This commit adds support for such extensions to ofp-msgs. These extensions were already half-supported, so there's barely any change to build-aux/extract-ofp-msgs. This isn't fully tested, since nothing adds support for such a message yet. Requested-by: Jarno Rajahalme <jarno@ovn.org> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Jarno Rajahalme <jarno@ovn.org>
Diffstat (limited to 'include')
-rw-r--r--include/openflow/nicira-ext.h16
-rw-r--r--include/openflow/openflow-1.1.h11
-rw-r--r--include/openflow/openflow-common.h11
3 files changed, 0 insertions, 38 deletions
diff --git a/include/openflow/nicira-ext.h b/include/openflow/nicira-ext.h
index dad8707e4..fdee33032 100644
--- a/include/openflow/nicira-ext.h
+++ b/include/openflow/nicira-ext.h
@@ -68,14 +68,6 @@ struct nx_vendor_error {
/* Nicira vendor requests and replies. */
-/* Header for Nicira vendor requests and replies. */
-struct nicira_header {
- struct ofp_header header;
- ovs_be32 vendor; /* NX_VENDOR_ID. */
- ovs_be32 subtype; /* See the NXT numbers in ofp-msgs.h. */
-};
-OFP_ASSERT(sizeof(struct nicira_header) == 16);
-
/* Header for Nicira vendor stats request and reply messages in OpenFlow
* 1.0. */
struct nicira10_stats_msg {
@@ -85,14 +77,6 @@ struct nicira10_stats_msg {
};
OFP_ASSERT(sizeof(struct nicira10_stats_msg) == 24);
-/* Header for Nicira vendor stats request and reply messages in OpenFlow
- * 1.1. */
-struct nicira11_stats_msg {
- struct ofp11_vendor_stats_msg vsm; /* Vendor NX_VENDOR_ID. */
- ovs_be32 subtype; /* One of NXST_* below. */
-};
-OFP_ASSERT(sizeof(struct nicira11_stats_msg) == 24);
-
/* Fields to use when hashing flows. */
enum nx_hash_fields {
/* Ethernet source address (NXM_OF_ETH_SRC) only. */
diff --git a/include/openflow/openflow-1.1.h b/include/openflow/openflow-1.1.h
index 361150ad9..63d8b4190 100644
--- a/include/openflow/openflow-1.1.h
+++ b/include/openflow/openflow-1.1.h
@@ -391,17 +391,6 @@ struct ofp11_stats_msg {
};
OFP_ASSERT(sizeof(struct ofp11_stats_msg) == 16);
-/* Vendor extension stats message. */
-struct ofp11_vendor_stats_msg {
- struct ofp11_stats_msg osm; /* Type OFPST_VENDOR. */
- ovs_be32 vendor; /* Vendor ID:
- * - MSB 0: low-order bytes are IEEE OUI.
- * - MSB != 0: defined by OpenFlow
- * consortium. */
- /* Followed by vendor-defined arbitrary additional data. */
-};
-OFP_ASSERT(sizeof(struct ofp11_vendor_stats_msg) == 20);
-
/* Stats request of type OFPST_FLOW. */
struct ofp11_flow_stats_request {
uint8_t table_id; /* ID of table to read (from ofp_table_stats),
diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h
index 885940009..97beec480 100644
--- a/include/openflow/openflow-common.h
+++ b/include/openflow/openflow-common.h
@@ -428,17 +428,6 @@ struct ofp_hello_elem_header {
};
OFP_ASSERT(sizeof(struct ofp_hello_elem_header) == 4);
-/* Vendor extension. */
-struct ofp_vendor_header {
- struct ofp_header header; /* Type OFPT_VENDOR or OFPT_EXPERIMENTER. */
- ovs_be32 vendor; /* Vendor ID:
- * - MSB 0: low-order bytes are IEEE OUI.
- * - MSB != 0: defined by OpenFlow
- * consortium. */
- /* Vendor-defined arbitrary additional data. */
-};
-OFP_ASSERT(sizeof(struct ofp_vendor_header) == 12);
-
/* Table numbering. Tables can use any number up to OFPT_MAX. */
enum ofp_table {
/* Last usable table number. */