Skip to content

Commit 818f4da

Browse files
ying-xuePaul Gortmaker
authored andcommitted
tipc: remove supportable flag from bclink structure
The "supportable" flag in bclink structure is a compatibility flag indicating whether a peer node is capable of receiving TIPC broadcast messages. However, all TIPC versions since tipc-1.5, and after the inclusion in the upstream Linux kernel in 2006, support this capability. It is highly unlikely that anybody is still using such an old version of TIPC, let alone that they want to mix it with TIPC-2.0 nodes. Therefore, we now remove the "supportable" flag. Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 3c294cb commit 818f4da

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

‎net/tipc/link.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,7 @@ static void link_retransmit_failure(struct tipc_link *l_ptr,
14261426

14271427
tipc_addr_string_fill(addr_string, n_ptr->addr);
14281428
pr_info("Broadcast link info for %s\n", addr_string);
1429-
pr_info("Supportable: %d, Supported: %d, Acked: %u\n",
1430-
n_ptr->bclink.supportable,
1429+
pr_info("Supported: %d, Acked: %u\n",
14311430
n_ptr->bclink.supported,
14321431
n_ptr->bclink.acked);
14331432
pr_info("Last in: %u, Oos state: %u, Last sent: %u\n",
@@ -2014,7 +2013,6 @@ static void link_recv_proto_msg(struct tipc_link *l_ptr, struct sk_buff *buf)
20142013
} else {
20152014
l_ptr->max_pkt = l_ptr->max_pkt_target;
20162015
}
2017-
l_ptr->owner->bclink.supportable = (max_pkt_info != 0);
20182016

20192017
/* Synchronize broadcast link info, if not done previously */
20202018
if (!tipc_node_is_up(l_ptr->owner)) {

‎net/tipc/node.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,9 @@ static void node_established_contact(struct tipc_node *n_ptr)
264264
{
265265
tipc_k_signal((Handler)tipc_named_node_up, n_ptr->addr);
266266

267-
if (n_ptr->bclink.supportable) {
268-
n_ptr->bclink.acked = tipc_bclink_get_last_sent();
269-
tipc_bclink_add_node(n_ptr->addr);
270-
n_ptr->bclink.supported = 1;
271-
}
267+
n_ptr->bclink.acked = tipc_bclink_get_last_sent();
268+
tipc_bclink_add_node(n_ptr->addr);
269+
n_ptr->bclink.supported = 1;
272270
}
273271

274272
static void node_name_purge_complete(unsigned long node_addr)

‎net/tipc/node.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
* @permit_changeover: non-zero if node has redundant links to this system
6868
* @signature: node instance identifier
6969
* @bclink: broadcast-related info
70-
* @supportable: non-zero if node supports TIPC b'cast link capability
7170
* @supported: non-zero if node supports TIPC b'cast capability
7271
* @acked: sequence # of last outbound b'cast message acknowledged by node
7372
* @last_in: sequence # of last in-sequence b'cast message received from node
@@ -92,7 +91,6 @@ struct tipc_node {
9291
int permit_changeover;
9392
u32 signature;
9493
struct {
95-
u8 supportable;
9694
u8 supported;
9795
u32 acked;
9896
u32 last_in;

0 commit comments

Comments
 (0)