aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/link.c5
-rw-r--r--net/tipc/node.c3
-rw-r--r--net/tipc/node.h4
3 files changed, 8 insertions, 4 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c
index 4ea6cad11746..3405f560a84d 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
@@ -1502,6 +1502,7 @@ static void link_retransmit_failure(struct tipc_link *l_ptr,
1502 1502
1503 tipc_addr_string_fill(addr_string, n_ptr->addr); 1503 tipc_addr_string_fill(addr_string, n_ptr->addr);
1504 info("Multicast link info for %s\n", addr_string); 1504 info("Multicast link info for %s\n", addr_string);
1505 info("Supportable: %d, ", n_ptr->bclink.supportable);
1505 info("Supported: %d, ", n_ptr->bclink.supported); 1506 info("Supported: %d, ", n_ptr->bclink.supported);
1506 info("Acked: %u\n", n_ptr->bclink.acked); 1507 info("Acked: %u\n", n_ptr->bclink.acked);
1507 info("Last in: %u, ", n_ptr->bclink.last_in); 1508 info("Last in: %u, ", n_ptr->bclink.last_in);
@@ -1736,7 +1737,7 @@ void tipc_recv_msg(struct sk_buff *head, struct tipc_bearer *b_ptr)
1736 1737
1737 /* Release acked messages */ 1738 /* Release acked messages */
1738 1739
1739 if (tipc_node_is_up(n_ptr) && n_ptr->bclink.supported) 1740 if (n_ptr->bclink.supported)
1740 tipc_bclink_acknowledge(n_ptr, msg_bcast_ack(msg)); 1741 tipc_bclink_acknowledge(n_ptr, msg_bcast_ack(msg));
1741 1742
1742 crs = l_ptr->first_out; 1743 crs = l_ptr->first_out;
@@ -2126,7 +2127,7 @@ static void link_recv_proto_msg(struct tipc_link *l_ptr, struct sk_buff *buf)
2126 } else { 2127 } else {
2127 l_ptr->max_pkt = l_ptr->max_pkt_target; 2128 l_ptr->max_pkt = l_ptr->max_pkt_target;
2128 } 2129 }
2129 l_ptr->owner->bclink.supported = (max_pkt_info != 0); 2130 l_ptr->owner->bclink.supportable = (max_pkt_info != 0);
2130 2131
2131 /* Synchronize broadcast link info, if not done previously */ 2132 /* Synchronize broadcast link info, if not done previously */
2132 2133
diff --git a/net/tipc/node.c b/net/tipc/node.c
index 6b226faad89f..9196f943b835 100644
--- a/net/tipc/node.c
+++ b/net/tipc/node.c
@@ -306,8 +306,9 @@ static void node_established_contact(struct tipc_node *n_ptr)
306 /* Syncronize broadcast acks */ 306 /* Syncronize broadcast acks */
307 n_ptr->bclink.acked = tipc_bclink_get_last_sent(); 307 n_ptr->bclink.acked = tipc_bclink_get_last_sent();
308 308
309 if (n_ptr->bclink.supported) { 309 if (n_ptr->bclink.supportable) {
310 tipc_bclink_add_node(n_ptr->addr); 310 tipc_bclink_add_node(n_ptr->addr);
311 n_ptr->bclink.supported = 1;
311 if (n_ptr->addr < tipc_own_addr) 312 if (n_ptr->addr < tipc_own_addr)
312 tipc_own_tag++; 313 tipc_own_tag++;
313 } 314 }
diff --git a/net/tipc/node.h b/net/tipc/node.h
index 0b1c5f8b6996..90689f487615 100644
--- a/net/tipc/node.h
+++ b/net/tipc/node.h
@@ -62,6 +62,7 @@
62 * @link_cnt: number of links to node 62 * @link_cnt: number of links to node
63 * @permit_changeover: non-zero if node has redundant links to this system 63 * @permit_changeover: non-zero if node has redundant links to this system
64 * @bclink: broadcast-related info 64 * @bclink: broadcast-related info
65 * @supportable: non-zero if node supports TIPC b'cast link capability
65 * @supported: non-zero if node supports TIPC b'cast capability 66 * @supported: non-zero if node supports TIPC b'cast capability
66 * @acked: sequence # of last outbound b'cast message acknowledged by node 67 * @acked: sequence # of last outbound b'cast message acknowledged by node
67 * @last_in: sequence # of last in-sequence b'cast message received from node 68 * @last_in: sequence # of last in-sequence b'cast message received from node
@@ -86,7 +87,8 @@ struct tipc_node {
86 int block_setup; 87 int block_setup;
87 int permit_changeover; 88 int permit_changeover;
88 struct { 89 struct {
89 int supported; 90 u8 supportable;
91 u8 supported;
90 u32 acked; 92 u32 acked;
91 u32 last_in; 93 u32 last_in;
92 u32 gap_after; 94 u32 gap_after;