Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194646
b: refs/heads/master
c: ea862c8
h: refs/heads/master
v: v3
  • Loading branch information
Vlad Yasevich committed May 1, 2010
1 parent 440a349 commit bb62959
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 65883371894be2631603d5d412f90f8c09290fef
refs/heads/master: ea862c8d1f4a0d193979c7412c3b946f600721ce
18 changes: 13 additions & 5 deletions trunk/net/sctp/outqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,7 @@ int sctp_outq_sack(struct sctp_outq *q, struct sctp_sackhdr *sack)
struct sctp_transport *primary = asoc->peer.primary_path;
int count_of_newacks = 0;
int gap_ack_blocks;
u8 accum_moved = 0;

/* Grab the association's destination address list. */
transport_list = &asoc->peer.transport_addr_list;
Expand Down Expand Up @@ -1232,16 +1233,22 @@ int sctp_outq_sack(struct sctp_outq *q, struct sctp_sackhdr *sack)
count_of_newacks ++;
}

/* Move the Cumulative TSN Ack Point if appropriate. */
if (TSN_lt(asoc->ctsn_ack_point, sack_ctsn)) {
asoc->ctsn_ack_point = sack_ctsn;
accum_moved = 1;
}

if (gap_ack_blocks) {

if (asoc->fast_recovery && accum_moved)
highest_new_tsn = highest_tsn;

list_for_each_entry(transport, transport_list, transports)
sctp_mark_missing(q, &transport->transmitted, transport,
highest_new_tsn, count_of_newacks);
}

/* Move the Cumulative TSN Ack Point if appropriate. */
if (TSN_lt(asoc->ctsn_ack_point, sack_ctsn))
asoc->ctsn_ack_point = sack_ctsn;

/* Update unack_data field in the assoc. */
sctp_sack_update_unack_data(asoc, sack);

Expand Down Expand Up @@ -1685,7 +1692,8 @@ static void sctp_mark_missing(struct sctp_outq *q,
struct sctp_chunk *chunk;
__u32 tsn;
char do_fast_retransmit = 0;
struct sctp_transport *primary = q->asoc->peer.primary_path;
struct sctp_association *asoc = q->asoc;
struct sctp_transport *primary = asoc->peer.primary_path;

list_for_each_entry(chunk, transmitted_queue, transmitted_list) {

Expand Down

0 comments on commit bb62959

Please sign in to comment.