diff options
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r-- | net/tipc/net.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index 5f7d6ffb5465..7fcc94998fea 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c | |||
@@ -103,46 +103,6 @@ | |||
103 | * This is always used within the scope of a tipc_nametbl_lock(read). | 103 | * This is always used within the scope of a tipc_nametbl_lock(read). |
104 | * - A local spin_lock protecting the queue of subscriber events. | 104 | * - A local spin_lock protecting the queue of subscriber events. |
105 | */ | 105 | */ |
106 | void tipc_net_route_msg(struct sk_buff *buf) | ||
107 | { | ||
108 | struct tipc_msg *msg; | ||
109 | u32 dnode; | ||
110 | |||
111 | if (!buf) | ||
112 | return; | ||
113 | msg = buf_msg(buf); | ||
114 | |||
115 | /* Handle message for this node */ | ||
116 | dnode = msg_short(msg) ? tipc_own_addr : msg_destnode(msg); | ||
117 | if (tipc_in_scope(dnode, tipc_own_addr)) { | ||
118 | if (msg_isdata(msg)) { | ||
119 | if (msg_mcast(msg)) | ||
120 | tipc_port_mcast_rcv(buf, NULL); | ||
121 | else if (msg_destport(msg)) { | ||
122 | tipc_sk_rcv(buf); | ||
123 | } else { | ||
124 | pr_warn("Cannot route msg; no destination\n"); | ||
125 | kfree_skb(buf); | ||
126 | } | ||
127 | return; | ||
128 | } | ||
129 | switch (msg_user(msg)) { | ||
130 | case NAME_DISTRIBUTOR: | ||
131 | tipc_named_rcv(buf); | ||
132 | break; | ||
133 | case CONN_MANAGER: | ||
134 | tipc_port_proto_rcv(buf); | ||
135 | break; | ||
136 | default: | ||
137 | kfree_skb(buf); | ||
138 | } | ||
139 | return; | ||
140 | } | ||
141 | |||
142 | /* Handle message for another node */ | ||
143 | skb_trim(buf, msg_size(msg)); | ||
144 | tipc_link_xmit(buf, dnode, msg_link_selector(msg)); | ||
145 | } | ||
146 | 106 | ||
147 | int tipc_net_start(u32 addr) | 107 | int tipc_net_start(u32 addr) |
148 | { | 108 | { |