aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/tipc_config.h2
-rw-r--r--net/tipc/bearer.c14
-rw-r--r--net/tipc/bearer.h2
-rw-r--r--net/tipc/config.c2
4 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/tipc_config.h b/include/linux/tipc_config.h
index 64aba5a0e9c7..0db239590b4d 100644
--- a/include/linux/tipc_config.h
+++ b/include/linux/tipc_config.h
@@ -202,7 +202,7 @@ struct tipc_link_info {
202 202
203struct tipc_bearer_config { 203struct tipc_bearer_config {
204 __be32 priority; /* Range [1,31]. Override per link */ 204 __be32 priority; /* Range [1,31]. Override per link */
205 __be32 detect_scope; 205 __be32 disc_domain; /* <Z.C.N> describing desired nodes */
206 char name[TIPC_MAX_BEARER_NAME]; 206 char name[TIPC_MAX_BEARER_NAME];
207}; 207};
208 208
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index f2839b0f6b65..9815797631e7 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -474,7 +474,7 @@ int tipc_bearer_congested(struct tipc_bearer *b_ptr, struct link *l_ptr)
474 * tipc_enable_bearer - enable bearer with the given name 474 * tipc_enable_bearer - enable bearer with the given name
475 */ 475 */
476 476
477int tipc_enable_bearer(const char *name, u32 bcast_scope, u32 priority) 477int tipc_enable_bearer(const char *name, u32 disc_domain, u32 priority)
478{ 478{
479 struct tipc_bearer *b_ptr; 479 struct tipc_bearer *b_ptr;
480 struct media *m_ptr; 480 struct media *m_ptr;
@@ -494,9 +494,9 @@ int tipc_enable_bearer(const char *name, u32 bcast_scope, u32 priority)
494 warn("Bearer <%s> rejected, illegal name\n", name); 494 warn("Bearer <%s> rejected, illegal name\n", name);
495 return -EINVAL; 495 return -EINVAL;
496 } 496 }
497 if (!tipc_addr_domain_valid(bcast_scope) || 497 if (!tipc_addr_domain_valid(disc_domain) ||
498 !tipc_in_scope(bcast_scope, tipc_own_addr)) { 498 !tipc_in_scope(disc_domain, tipc_own_addr)) {
499 warn("Bearer <%s> rejected, illegal broadcast scope\n", name); 499 warn("Bearer <%s> rejected, illegal discovery domain\n", name);
500 return -EINVAL; 500 return -EINVAL;
501 } 501 }
502 if ((priority < TIPC_MIN_LINK_PRI || 502 if ((priority < TIPC_MIN_LINK_PRI ||
@@ -560,18 +560,18 @@ restart:
560 b_ptr->media = m_ptr; 560 b_ptr->media = m_ptr;
561 b_ptr->net_plane = bearer_id + 'A'; 561 b_ptr->net_plane = bearer_id + 'A';
562 b_ptr->active = 1; 562 b_ptr->active = 1;
563 b_ptr->detect_scope = bcast_scope; 563 b_ptr->detect_scope = disc_domain;
564 b_ptr->priority = priority; 564 b_ptr->priority = priority;
565 INIT_LIST_HEAD(&b_ptr->cong_links); 565 INIT_LIST_HEAD(&b_ptr->cong_links);
566 INIT_LIST_HEAD(&b_ptr->links); 566 INIT_LIST_HEAD(&b_ptr->links);
567 if (m_ptr->bcast) { 567 if (m_ptr->bcast) {
568 b_ptr->link_req = tipc_disc_init_link_req(b_ptr, &m_ptr->bcast_addr, 568 b_ptr->link_req = tipc_disc_init_link_req(b_ptr, &m_ptr->bcast_addr,
569 bcast_scope); 569 disc_domain);
570 } 570 }
571 spin_lock_init(&b_ptr->lock); 571 spin_lock_init(&b_ptr->lock);
572 write_unlock_bh(&tipc_net_lock); 572 write_unlock_bh(&tipc_net_lock);
573 info("Enabled bearer <%s>, discovery domain %s, priority %u\n", 573 info("Enabled bearer <%s>, discovery domain %s, priority %u\n",
574 name, tipc_addr_string_fill(addr_string, bcast_scope), priority); 574 name, tipc_addr_string_fill(addr_string, disc_domain), priority);
575 return 0; 575 return 0;
576failed: 576failed:
577 write_unlock_bh(&tipc_net_lock); 577 write_unlock_bh(&tipc_net_lock);
diff --git a/net/tipc/bearer.h b/net/tipc/bearer.h
index 255dea64f7bd..adebdaf0d07b 100644
--- a/net/tipc/bearer.h
+++ b/net/tipc/bearer.h
@@ -167,7 +167,7 @@ void tipc_recv_msg(struct sk_buff *buf, struct tipc_bearer *tb_ptr);
167int tipc_block_bearer(const char *name); 167int tipc_block_bearer(const char *name);
168void tipc_continue(struct tipc_bearer *tb_ptr); 168void tipc_continue(struct tipc_bearer *tb_ptr);
169 169
170int tipc_enable_bearer(const char *bearer_name, u32 bcast_scope, u32 priority); 170int tipc_enable_bearer(const char *bearer_name, u32 disc_domain, u32 priority);
171int tipc_disable_bearer(const char *name); 171int tipc_disable_bearer(const char *name);
172 172
173/* 173/*
diff --git a/net/tipc/config.c b/net/tipc/config.c
index fa3d50860055..b25a396b7e1e 100644
--- a/net/tipc/config.c
+++ b/net/tipc/config.c
@@ -148,7 +148,7 @@ static struct sk_buff *cfg_enable_bearer(void)
148 148
149 args = (struct tipc_bearer_config *)TLV_DATA(req_tlv_area); 149 args = (struct tipc_bearer_config *)TLV_DATA(req_tlv_area);
150 if (tipc_enable_bearer(args->name, 150 if (tipc_enable_bearer(args->name,
151 ntohl(args->detect_scope), 151 ntohl(args->disc_domain),
152 ntohl(args->priority))) 152 ntohl(args->priority)))
153 return tipc_cfg_reply_error_string("unable to enable bearer"); 153 return tipc_cfg_reply_error_string("unable to enable bearer");
154 154