You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
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 <ying.xue@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0ef897be12
commit
026321c6d0
@@ -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
|
||||
|
||||
@@ -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"
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -38,17 +38,14 @@
|
||||
#define _TIPC_SERVER_H
|
||||
|
||||
#include "core.h"
|
||||
#include <linux/idr.h>
|
||||
#include <linux/tipc.h>
|
||||
#include <net/net_namespace.h>
|
||||
|
||||
#define TIPC_SERVER_NAME_LEN 32
|
||||
#define TIPC_SUB_CLUSTER_SCOPE 0x20
|
||||
#define TIPC_SUB_NODE_SCOPE 0x40
|
||||
#define TIPC_SUB_NO_STATUS 0x80
|
||||
|
||||
void tipc_conn_queue_evt(struct net *net, int conid,
|
||||
u32 event, struct tipc_event *evt);
|
||||
void tipc_topsrv_queue_evt(struct net *net, int conid,
|
||||
u32 event, struct tipc_event *evt);
|
||||
|
||||
bool tipc_topsrv_kern_subscr(struct net *net, u32 port, u32 type, u32 lower,
|
||||
u32 upper, u32 filter, int *conid);
|
||||
Reference in New Issue
Block a user