Skip to content

Commit 026321c

Browse files
Jon Maloydavem330
authored andcommitted
tipc: rename tipc_server to tipc_topsrv
We rename struct tipc_server to struct tipc_topsrv. This reflect its now specialized role as topology server. Accoringly, we change or add function prefixes to make it clearer which functionality those belong to. There are 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 0ef897b commit 026321c

File tree

7 files changed

+258
-259
lines changed

7 files changed

+258
-259
lines changed

net/tipc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tipc-y += addr.o bcast.o bearer.o \
99
core.o link.o discover.o msg.o \
1010
name_distr.o subscr.o monitor.o name_table.o net.o \
1111
netlink.o netlink_compat.o node.o socket.o eth_media.o \
12-
server.o socket.o group.o
12+
topsrv.o socket.o group.o
1313

1414
tipc-$(CONFIG_TIPC_MEDIA_UDP) += udp_media.o
1515
tipc-$(CONFIG_TIPC_MEDIA_IB) += ib_media.o

net/tipc/core.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct tipc_bearer;
6464
struct tipc_bc_base;
6565
struct tipc_link;
6666
struct tipc_name_table;
67-
struct tipc_server;
67+
struct tipc_topsrv;
6868
struct tipc_monitor;
6969

7070
#define TIPC_MOD_VER "2.0.0"
@@ -112,7 +112,7 @@ struct tipc_net {
112112
struct list_head dist_queue;
113113

114114
/* Topology subscription server */
115-
struct tipc_server *topsrv;
115+
struct tipc_topsrv *topsrv;
116116
atomic_t subscription_count;
117117
};
118118

@@ -131,7 +131,7 @@ static inline struct list_head *tipc_nodes(struct net *net)
131131
return &tipc_net(net)->node_list;
132132
}
133133

134-
static inline struct tipc_server *tipc_topsrv(struct net *net)
134+
static inline struct tipc_topsrv *tipc_topsrv(struct net *net)
135135
{
136136
return tipc_net(net)->topsrv;
137137
}

net/tipc/group.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include "addr.h"
3838
#include "group.h"
3939
#include "bcast.h"
40-
#include "server.h"
40+
#include "topsrv.h"
4141
#include "msg.h"
4242
#include "socket.h"
4343
#include "node.h"

net/tipc/subscr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void tipc_sub_send_event(struct tipc_subscription *sub,
5151
tipc_evt_write(evt, found_upper, found_upper);
5252
tipc_evt_write(evt, port.ref, port);
5353
tipc_evt_write(evt, port.node, node);
54-
tipc_conn_queue_evt(sub->net, sub->conid, event, evt);
54+
tipc_topsrv_queue_evt(sub->net, sub->conid, event, evt);
5555
}
5656

5757
/**

net/tipc/subscr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#ifndef _TIPC_SUBSCR_H
3838
#define _TIPC_SUBSCR_H
3939

40-
#include "server.h"
40+
#include "topsrv.h"
4141

4242
#define TIPC_MAX_SUBSCR 65535
4343
#define TIPC_MAX_PUBLICATIONS 65535

0 commit comments

Comments
 (0)