Skip to content

Commit 7d45a04

Browse files
Jon Paul Maloydavem330
authored andcommitted
tipc: remove remnants of old broadcast code
We remove a couple of leftover fields in struct tipc_bearer. Those were used by the old broadcast implementation, and are not needed any longer. There is no functional changes in this commit. Acked-by: Ying Xue <[email protected]> Signed-off-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b30d27f commit 7d45a04

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

net/tipc/bearer.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#include <net/genetlink.h>
4343

4444
#define MAX_MEDIA 3
45-
#define MAX_NODES 4096
46-
#define WSIZE 32
4745

4846
/* Identifiers associated with TIPC message header media address info
4947
* - address info field is 32 bytes long
@@ -61,16 +59,6 @@
6159
#define TIPC_MEDIA_TYPE_IB 2
6260
#define TIPC_MEDIA_TYPE_UDP 3
6361

64-
/**
65-
* struct tipc_node_map - set of node identifiers
66-
* @count: # of nodes in set
67-
* @map: bitmap of node identifiers that are in the set
68-
*/
69-
struct tipc_node_map {
70-
u32 count;
71-
u32 map[MAX_NODES / WSIZE];
72-
};
73-
7462
/**
7563
* struct tipc_media_addr - destination address used by TIPC bearers
7664
* @value: address info (format defined by media)
@@ -142,7 +130,6 @@ struct tipc_media {
142130
* @identity: array index of this bearer within TIPC bearer array
143131
* @link_req: ptr to (optional) structure making periodic link setup requests
144132
* @net_plane: network plane ('A' through 'H') currently associated with bearer
145-
* @nodes: indicates which nodes in cluster can be reached through bearer
146133
*
147134
* Note: media-specific code is responsible for initialization of the fields
148135
* indicated below when a bearer is enabled; TIPC's generic bearer code takes
@@ -163,8 +150,6 @@ struct tipc_bearer {
163150
u32 identity;
164151
struct tipc_link_req *link_req;
165152
char net_plane;
166-
int node_cnt;
167-
struct tipc_node_map nodes;
168153
};
169154

170155
struct tipc_bearer_names {

0 commit comments

Comments
 (0)