aboutsummaryrefslogtreecommitdiff
path: root/ofproto/ofproto.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-12-26 14:56:01 -0800
committerBen Pfaff <blp@nicira.com>2012-12-26 15:03:21 -0800
commit061bfea46df4048440a219472719e5def71f4090 (patch)
tree8d258a2c2cda415fd708a6094db5258bd2b3b879 /ofproto/ofproto.h
parentfdfdbd4e1e83d7220cda3150caac424242229aab (diff)
ofproto: Use NULL "desc" values to indicate defaults.
This saves a small amount of memory. It should also save a small amount of time for reconfiguration starting with an upcoming commit where it becomes possible to change the dp_desc away from the default (because it will not be necessary to compare the current value against the default). Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r--ofproto/ofproto.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h
index 27a55e97..cedb2cdf 100644
--- a/ofproto/ofproto.h
+++ b/ofproto/ofproto.h
@@ -132,12 +132,6 @@ struct ofproto_controller {
uint8_t dscp; /* DSCP value for controller connection. */
};
-#define DEFAULT_MFR_DESC "Nicira, Inc."
-#define DEFAULT_HW_DESC "Open vSwitch"
-#define DEFAULT_SW_DESC VERSION
-#define DEFAULT_SERIAL_DESC "None"
-#define DEFAULT_DP_DESC "None"
-
void ofproto_enumerate_types(struct sset *types);
const char *ofproto_normalize_type(const char *);