Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193605
b: refs/heads/master
c: ca50910
h: refs/heads/master
i:
  193603: 85aacb7
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Mar 17, 2010
1 parent 0d48b00 commit 9e0296a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 1a624832a06b465d0e5651901bcbc3680c78d374
refs/heads/master: ca50910185fcce694af0cc194de50d2374a7c7ef
11 changes: 6 additions & 5 deletions trunk/net/tipc/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ u32 tipc_link_push_packet(struct link *l_ptr)

/* Continue retransmission now, if there is anything: */

if (r_q_size && buf && !skb_cloned(buf)) {
if (r_q_size && buf) {
msg_set_ack(buf_msg(buf), mod(l_ptr->next_in_no - 1));
msg_set_bcast_ack(buf_msg(buf), l_ptr->owner->bclink.last_in);
if (tipc_bearer_send(l_ptr->b_ptr, buf, &l_ptr->media_addr)) {
Expand Down Expand Up @@ -1722,15 +1722,16 @@ void tipc_link_retransmit(struct link *l_ptr, struct sk_buff *buf,
dbg("Retransmitting %u in link %x\n", retransmits, l_ptr);

if (tipc_bearer_congested(l_ptr->b_ptr, l_ptr)) {
if (!skb_cloned(buf)) {
if (l_ptr->retransm_queue_size == 0) {
msg_dbg(msg, ">NO_RETR->BCONG>");
dbg_print_link(l_ptr, " ");
l_ptr->retransm_queue_head = msg_seqno(msg);
l_ptr->retransm_queue_size = retransmits;
return;
} else {
/* Don't retransmit if driver already has the buffer */
err("Unexpected retransmit on link %s (qsize=%d)\n",
l_ptr->name, l_ptr->retransm_queue_size);
}
return;
} else {
/* Detect repeated retransmit failures on uncongested bearer */

Expand All @@ -1745,7 +1746,7 @@ void tipc_link_retransmit(struct link *l_ptr, struct sk_buff *buf,
}
}

while (retransmits && (buf != l_ptr->next_out) && buf && !skb_cloned(buf)) {
while (retransmits && (buf != l_ptr->next_out) && buf) {
msg = buf_msg(buf);
msg_set_ack(msg, mod(l_ptr->next_in_no - 1));
msg_set_bcast_ack(msg, l_ptr->owner->bclink.last_in);
Expand Down

0 comments on commit 9e0296a

Please sign in to comment.