Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18284
b: refs/heads/master
c: b70e4f4
h: refs/heads/master
v: v3
  • Loading branch information
Jon Maloy authored and David S. Miller committed Jan 12, 2006
1 parent 3695890 commit da6f595
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1dba9743337cabacea79e47ed6d709e636c5ed47
refs/heads/master: b70e4f45a8d8125e4f420c62e71688b8a766689a
28 changes: 2 additions & 26 deletions trunk/net/tipc/discover.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,41 +258,17 @@ void disc_update_link_req(struct link_req *req)

static void disc_timeout(struct link_req *req)
{
struct tipc_msg *msg = buf_msg(req->buf);

spin_lock_bh(&req->bearer->publ.lock);

#if 0
/* CURRENTLY DON'T SUPPORT INTER-ZONE LINKS */
u32 dest_domain = msg_dest_domain(msg);
int stop = 0;
if (!in_scope(dest_domain, tipc_own_addr)) {
struct _zone *z_ptr = zone_find(dest_domain);

if (z_ptr && (z_ptr->links >= msg_req_links(msg)))
stop = 1;
if (req->timer_intv >= 32000)
stop = 1;
}
if (stop) {
k_cancel_timer(&req->timer);
buf_discard(req->buf);
kfree(req);
spin_unlock_bh(&req->bearer->publ.lock);
return;
}
#endif

msg_dbg(msg,"SEND:");
req->bearer->media->send_msg(req->buf, &req->bearer->publ, &req->dest);

if ((req->timer_intv == TIPC_LINK_REQ_SLOW) ||
(req->timer_intv == TIPC_LINK_REQ_FAST)) {
/* leave timer interval "as is" if already at a "normal" rate */
} else {
req->timer_intv *= 2;
if (req->timer_intv > TIPC_LINK_REQ_FAST)
req->timer_intv = TIPC_LINK_REQ_FAST;
if (req->timer_intv > TIPC_LINK_REQ_SLOW)
req->timer_intv = TIPC_LINK_REQ_SLOW;
if ((req->timer_intv == TIPC_LINK_REQ_FAST) &&
(req->bearer->nodes.count))
req->timer_intv = TIPC_LINK_REQ_SLOW;
Expand Down
4 changes: 3 additions & 1 deletion trunk/net/tipc/netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ static int family_registered = 0;

int netlink_start(void)
{


if (genl_register_family(&family))
goto err;

Expand All @@ -88,7 +90,7 @@ int netlink_start(void)
if (genl_register_ops(&family, &ops))
goto err_unregister;

return 0;
return 0;

err_unregister:
genl_unregister_family(&family);
Expand Down

0 comments on commit da6f595

Please sign in to comment.