All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>
To: dccp@vger.kernel.org
Subject: Re: DCCP_BUG called
Date: Fri, 20 Aug 2010 08:46:23 +0000	[thread overview]
Message-ID: <4C6E40DF.4090509@pu-pm.univ-fcomte.fr> (raw)
In-Reply-To: <4C6D3DD8.4080606@pu-pm.univ-fcomte.fr>

On 20/08/10 07:15, Gerrit Renker wrote:
>>    sudo $TC qdisc add dev $IF root handle 1: htb default 10
>>    sudo $TC class add dev $IF parent 1: classid 1:10 htb rate $up_rate
>>    sudo $TC filter add dev $IF protocol ip parent 1:0 prio 1 u32 match ip
>> dst $dest flowid 1:10
>>    sudo $TC qdisc add dev $IF parent 1:10 handle 40: sfq perturb 10 limit 2
>>
>> taken from http://lartc.org/howto/, we receive many errors like this:
>>
>> [27799.691275] BUG: err=1 after ccid_hc_tx_packet_sent at
>> /build/buildd/linux-2.6.32/net/dccp/output.c:307/dccp_write_xmit()
>> [27799.691288]<IRQ>   [<ffffffffa0441db5>] dccp_write_xmit+0x165/0x310
>> [dccp]
>> [27799.691308]  [<ffffffffa0443ac0>] ? dccp_write_xmit_timer+0x0/0x80 [dccp]
>> [27799.691315]  [<ffffffffa0443b3a>] dccp_write_xmit_timer+0x7a/0x80 [dccp]
>>
>> We found that they are triggered by the following code in net/dccp/output.c:
>> 306   err = dccp_transmit_skb(sk, skb);
>> 307   ccid_hc_tx_packet_sent(dp->dccps_hc_tx_ccid, sk, 0, len);
>> 308   if (err)
>> 309     DCCP_BUG("err=%d after ccid_hc_tx_packet_sent",
>> 310              err);
>>
>> Is there a way to fix to workaround that?
>
> The 'err = 1' is triggered because the qdisc can refuse to take a packet, so that
>
>   #define NET_XMIT_DROP           0x01    /* skb dropped                  */
>
> is returned. Thus what you are seeing is not a real bug, but rather a misplaced
> BUG statement.
>
> I haven't verified this, but I am almost sure that the problem is rectified in the
> DCCP test tree which I would like to encourage you to use for all testing, since it

Thank you for your answer.  I have not yet tested with DCCP test tree 
indeed, but I see that the code involved is there too, i.e.:

  306  err = dccp_transmit_skb(sk, skb);
  307  ccid_hc_tx_packet_sent(dp->dccps_hc_tx_ccid, sk, 0, len);
  308  if (err)
  309    DCCP_BUG("err=%d after ccid_hc_tx_packet_sent",
  310             err);

and in dccp_transmit_skb():

  139                 err = icsk->icsk_af_ops->queue_xmit(skb);
  140                 return net_xmit_eval(err);

-- 
Eugen

  parent reply	other threads:[~2010-08-20  8:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 14:21 DCCP_BUG called Eugen Dedu
2010-08-20  5:15 ` Gerrit Renker
2010-08-20  8:46 ` Eugen Dedu [this message]
2010-08-20 10:40 ` Gerrit Renker
2010-08-23  5:29 ` Gerrit Renker
2010-08-25 13:21 ` Eugen Dedu
2010-08-26 11:08 ` gerrit
2010-08-26 16:11 ` Eugen Dedu
2010-08-26 16:26 ` Ian McDonald
2010-08-26 20:12 ` Eugen Dedu
2010-08-27 11:45 ` Gerrit Renker
2010-08-27 13:32 ` Eugen Dedu
2010-08-30 17:33 ` Ian McDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C6E40DF.4090509@pu-pm.univ-fcomte.fr \
    --to=eugen.dedu@pu-pm.univ-fcomte.fr \
    --cc=dccp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.