summaryrefslogtreecommitdiff
path: root/include/openvswitch
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2020-06-17 14:55:45 -0700
committerBen Pfaff <blp@ovn.org>2020-10-16 19:10:02 -0700
commit807152a4ddfb89b65ef75c6b12937ecd68ea8cb3 (patch)
tree51136a78ad9c3dc59106214c57e51d4ed3592ab8 /include/openvswitch
parentbbe2e39287476e7ba3e71d064adb8c0735cf0e95 (diff)
downloadopenvswitch-807152a4ddfb89b65ef75c6b12937ecd68ea8cb3.tar.gz
Use primary/secondary, not master/slave, as names for OpenFlow roles.
Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Alin Gabriel Serdean <aserdean@ovn.org>
Diffstat (limited to 'include/openvswitch')
-rw-r--r--include/openvswitch/ofp-connection.h6
-rw-r--r--include/openvswitch/ofp-errors.h9
2 files changed, 8 insertions, 7 deletions
diff --git a/include/openvswitch/ofp-connection.h b/include/openvswitch/ofp-connection.h
index 5fb143157..1e844e07f 100644
--- a/include/openvswitch/ofp-connection.h
+++ b/include/openvswitch/ofp-connection.h
@@ -69,10 +69,10 @@ enum ofputil_async_msg_type {
const char *ofputil_async_msg_type_to_string(enum ofputil_async_msg_type);
struct ofputil_async_cfg {
- uint32_t master[OAM_N_TYPES];
- uint32_t slave[OAM_N_TYPES];
+ uint32_t primary[OAM_N_TYPES];
+ uint32_t secondary[OAM_N_TYPES];
};
-#define OFPUTIL_ASYNC_CFG_INIT (struct ofputil_async_cfg) { .master[0] = 0 }
+#define OFPUTIL_ASYNC_CFG_INIT (struct ofputil_async_cfg) { .primary[0] = 0 }
enum ofperr ofputil_decode_set_async_config(const struct ofp_header *,
bool loose,
diff --git a/include/openvswitch/ofp-errors.h b/include/openvswitch/ofp-errors.h
index a3f8142df..8c8511d65 100644
--- a/include/openvswitch/ofp-errors.h
+++ b/include/openvswitch/ofp-errors.h
@@ -115,10 +115,10 @@ enum ofperr {
* OFPBIC_BAD_EXP_TYPE. */
/* Expected: 0x0,1,5 in OF1.0 means both OFPBRC_EPERM and
- * OFPBRC_IS_SLAVE. */
+ * OFPBRC_IS_SECONDARY. */
/* Expected: 0x0,1,5 in OF1.1 means both OFPBRC_EPERM and
- * OFPBRC_IS_SLAVE. */
+ * OFPBRC_IS_SECONDARY. */
/* ## ------------------ ## */
/* ## OFPET_HELLO_FAILED ## */
@@ -168,8 +168,9 @@ enum ofperr {
* code defined the specification. ] */
OFPERR_OFPBRC_BAD_TABLE_ID,
- /* OF1.0-1.1(1,5), OF1.2+(1,10). Denied because controller is slave. */
- OFPERR_OFPBRC_IS_SLAVE,
+ /* OF1.0-1.1(1,5), OF1.2+(1,10). Denied because controller has secondary
+ * role. (Secondary controllers have only read-only access.) */
+ OFPERR_OFPBRC_IS_SECONDARY,
/* NX1.0-1.1(1,514), OF1.2+(1,11). Invalid or missing port. [ A
* non-standard error (1,514), formerly OFPERR_NXBRC_BAD_IN_PORT is used