Skip to content

Commit

Permalink
tipc: rename tipc_server to tipc_topsrv
Browse files Browse the repository at this point in the history
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 <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jon Maloy authored and davem330 committed Feb 16, 2018
1 parent 0ef897b commit 026321c
Show file tree
Hide file tree
Showing 7 changed files with 258 additions and 259 deletions.
2 changes: 1 addition & 1 deletion net/tipc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tipc-y += addr.o bcast.o bearer.o \
core.o link.o discover.o msg.o \
name_distr.o subscr.o monitor.o name_table.o net.o \
netlink.o netlink_compat.o node.o socket.o eth_media.o \
server.o socket.o group.o
topsrv.o socket.o group.o

tipc-$(CONFIG_TIPC_MEDIA_UDP) += udp_media.o
tipc-$(CONFIG_TIPC_MEDIA_IB) += ib_media.o
Expand Down
6 changes: 3 additions & 3 deletions net/tipc/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct tipc_bearer;
struct tipc_bc_base;
struct tipc_link;
struct tipc_name_table;
struct tipc_server;
struct tipc_topsrv;
struct tipc_monitor;

#define TIPC_MOD_VER "2.0.0"
Expand Down Expand Up @@ -112,7 +112,7 @@ struct tipc_net {
struct list_head dist_queue;

/* Topology subscription server */
struct tipc_server *topsrv;
struct tipc_topsrv *topsrv;
atomic_t subscription_count;
};

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

static inline struct tipc_server *tipc_topsrv(struct net *net)
static inline struct tipc_topsrv *tipc_topsrv(struct net *net)
{
return tipc_net(net)->topsrv;
}
Expand Down
2 changes: 1 addition & 1 deletion net/tipc/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include "addr.h"
#include "group.h"
#include "bcast.h"
#include "server.h"
#include "topsrv.h"
#include "msg.h"
#include "socket.h"
#include "node.h"
Expand Down
2 changes: 1 addition & 1 deletion net/tipc/subscr.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static void tipc_sub_send_event(struct tipc_subscription *sub,
tipc_evt_write(evt, found_upper, found_upper);
tipc_evt_write(evt, port.ref, port);
tipc_evt_write(evt, port.node, node);
tipc_conn_queue_evt(sub->net, sub->conid, event, evt);
tipc_topsrv_queue_evt(sub->net, sub->conid, event, evt);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion net/tipc/subscr.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#ifndef _TIPC_SUBSCR_H
#define _TIPC_SUBSCR_H

#include "server.h"
#include "topsrv.h"

#define TIPC_MAX_SUBSCR 65535
#define TIPC_MAX_PUBLICATIONS 65535
Expand Down
Loading

0 comments on commit 026321c

Please sign in to comment.