Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111524
b: refs/heads/master
c: c6f0f2e
h: refs/heads/master
v: v3
  • Loading branch information
Gerrit Renker committed Sep 4, 2008
1 parent dde09b7 commit 2f3cee3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 52 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: 83337dae6ca94d801b6700600244865cd694205b
refs/heads/master: c6f0f2e71f3088a0f05502d6adb0f667b84028c3
51 changes: 0 additions & 51 deletions trunk/net/dccp/ccids/ccid2.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,51 +34,8 @@
#ifdef CONFIG_IP_DCCP_CCID2_DEBUG
static int ccid2_debug;
#define ccid2_pr_debug(format, a...) DCCP_PR_DEBUG(ccid2_debug, format, ##a)

static void ccid2_hc_tx_check_sanity(const struct ccid2_hc_tx_sock *hctx)
{
int len = 0;
int pipe = 0;
struct ccid2_seq *seqp = hctx->seqh;

/* there is data in the chain */
if (seqp != hctx->seqt) {
seqp = seqp->ccid2s_prev;
len++;
if (!seqp->ccid2s_acked)
pipe++;

while (seqp != hctx->seqt) {
struct ccid2_seq *prev = seqp->ccid2s_prev;

len++;
if (!prev->ccid2s_acked)
pipe++;

/* packets are sent sequentially */
BUG_ON(dccp_delta_seqno(seqp->ccid2s_seq,
prev->ccid2s_seq ) >= 0);
BUG_ON(time_before(seqp->ccid2s_sent,
prev->ccid2s_sent));

seqp = prev;
}
}

BUG_ON(pipe != hctx->pipe);
ccid2_pr_debug("len of chain=%d\n", len);

do {
seqp = seqp->ccid2s_prev;
len++;
} while (seqp != hctx->seqh);

ccid2_pr_debug("total len=%d\n", len);
BUG_ON(len != hctx->seqbufc * CCID2_SEQBUF_LEN);
}
#else
#define ccid2_pr_debug(format, a...)
#define ccid2_hc_tx_check_sanity(hctx)
#endif

static int ccid2_hc_tx_alloc_seq(struct ccid2_hc_tx_sock *hctx)
Expand Down Expand Up @@ -176,8 +133,6 @@ static void ccid2_hc_tx_rto_expire(unsigned long data)

ccid2_pr_debug("RTO_EXPIRE\n");

ccid2_hc_tx_check_sanity(hctx);

/* back-off timer */
hctx->rto <<= 1;

Expand All @@ -200,7 +155,6 @@ static void ccid2_hc_tx_rto_expire(unsigned long data)
hctx->rpseq = 0;
hctx->rpdupack = -1;
ccid2_change_l_ack_ratio(sk, 1);
ccid2_hc_tx_check_sanity(hctx);

/* if we were blocked before, we may now send cwnd=1 packet */
if (sender_was_blocked)
Expand Down Expand Up @@ -314,7 +268,6 @@ static void ccid2_hc_tx_packet_sent(struct sock *sk, unsigned int len)
}
} while (0);
ccid2_pr_debug("=========\n");
ccid2_hc_tx_check_sanity(hctx);
#endif
}

Expand Down Expand Up @@ -463,7 +416,6 @@ static void ccid2_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
int done = 0;
unsigned int maxincr = 0;

ccid2_hc_tx_check_sanity(hctx);
/* check reverse path congestion */
seqno = DCCP_SKB_CB(skb)->dccpd_seq;

Expand Down Expand Up @@ -640,7 +592,6 @@ static void ccid2_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
hctx->seqt = hctx->seqt->ccid2s_next;
}

ccid2_hc_tx_check_sanity(hctx);
done:
/* check if incoming Acks allow pending packets to be sent */
if (sender_was_blocked && !ccid2_cwnd_network_limited(hctx))
Expand Down Expand Up @@ -680,8 +631,6 @@ static int ccid2_hc_tx_init(struct ccid *ccid, struct sock *sk)
hctx->last_cong = jiffies;
setup_timer(&hctx->rtotimer, ccid2_hc_tx_rto_expire, (unsigned long)sk);
INIT_LIST_HEAD(&hctx->av_chunks);

ccid2_hc_tx_check_sanity(hctx);
return 0;
}

Expand Down

0 comments on commit 2f3cee3

Please sign in to comment.