File tree Expand file tree Collapse file tree 2 files changed +5
-27
lines changed Expand file tree Collapse file tree 2 files changed +5
-27
lines changed Original file line number Diff line number Diff line change @@ -258,41 +258,17 @@ void disc_update_link_req(struct link_req *req)
258
258
259
259
static void disc_timeout (struct link_req * req )
260
260
{
261
- struct tipc_msg * msg = buf_msg (req -> buf );
262
-
263
261
spin_lock_bh (& req -> bearer -> publ .lock );
264
262
265
- #if 0
266
- /* CURRENTLY DON'T SUPPORT INTER-ZONE LINKS */
267
- u32 dest_domain = msg_dest_domain (msg );
268
- int stop = 0 ;
269
- if (!in_scope (dest_domain , tipc_own_addr )) {
270
- struct _zone * z_ptr = zone_find (dest_domain );
271
-
272
- if (z_ptr && (z_ptr -> links >= msg_req_links (msg )))
273
- stop = 1 ;
274
- if (req -> timer_intv >= 32000 )
275
- stop = 1 ;
276
- }
277
- if (stop ) {
278
- k_cancel_timer (& req -> timer );
279
- buf_discard (req -> buf );
280
- kfree (req );
281
- spin_unlock_bh (& req -> bearer -> publ .lock );
282
- return ;
283
- }
284
- #endif
285
-
286
- msg_dbg (msg ,"SEND:" );
287
263
req -> bearer -> media -> send_msg (req -> buf , & req -> bearer -> publ , & req -> dest );
288
264
289
265
if ((req -> timer_intv == TIPC_LINK_REQ_SLOW ) ||
290
266
(req -> timer_intv == TIPC_LINK_REQ_FAST )) {
291
267
/* leave timer interval "as is" if already at a "normal" rate */
292
268
} else {
293
269
req -> timer_intv *= 2 ;
294
- if (req -> timer_intv > TIPC_LINK_REQ_FAST )
295
- req -> timer_intv = TIPC_LINK_REQ_FAST ;
270
+ if (req -> timer_intv > TIPC_LINK_REQ_SLOW )
271
+ req -> timer_intv = TIPC_LINK_REQ_SLOW ;
296
272
if ((req -> timer_intv == TIPC_LINK_REQ_FAST ) &&
297
273
(req -> bearer -> nodes .count ))
298
274
req -> timer_intv = TIPC_LINK_REQ_SLOW ;
Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ static int family_registered = 0;
80
80
81
81
int netlink_start (void )
82
82
{
83
+
84
+
83
85
if (genl_register_family (& family ))
84
86
goto err ;
85
87
@@ -88,7 +90,7 @@ int netlink_start(void)
88
90
if (genl_register_ops (& family , & ops ))
89
91
goto err_unregister ;
90
92
91
- return 0 ;
93
+ return 0 ;
92
94
93
95
err_unregister :
94
96
genl_unregister_family (& family );
You can’t perform that action at this time.
0 commit comments