Showing posts with label dccp. Show all posts
Showing posts with label dccp. Show all posts

Wednesday, May 14, 2008

DCCP-CCID4 bug+patch (p1)


if (hctx->p > 0)
// when loss
{
hctx->x = min(((u64)hctx->x_calc) << 6, min_rate);
low_thresh /= TFRC_T_MBI;
ccid4_hc_tx_x_header_penalty(hctx);
}

else if (ktime_us_delta(now, hctx->t_ld) - (s64)hctx->rtt >= 0)
// no-loss
{
hctx->x = min(2 * old_x, min_rate);
low_thresh = scaled_div(low_thresh, hctx->rtt);
hctx->t_ld = now;
/*ccid4_hc_tx_x_header_penalty(hctx);*/

// babil
// header penalty should not be applied if there's no loss yet
// it will effectively stop the X from growing higher in a small packet and
// low data-rate stream, while the available bandwidth is higher on the link.
}



Friday, March 7, 2008

loss_interval.c output

Cr@p!!! All these time I kept thinking, just replacing "dccp_ccid.ko" will do the debug output trick, but apparently "loss_interval.c"
  • printk() ... prio=4
  • dccp_pr_debug () ... prio=7
  • ccid3_pr_debug() ... prio=7
functions are linked from ::

"../dccp/ccids/lib/dccp_tfrc_lib.ko".

So, replace it toooo !!!