From: Leandro Sales <leandroal@gmail.com>
To: Gerrit Renker <gerrit@erg.abdn.ac.uk>,
Ivo Calado <ivocalado@embedded.ufcg.edu.br>,
dccp@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCHv2 2/4] Implement loss counting on TFRC-SP receiver
Date: Mon, 19 Oct 2009 13:04:15 -0300 [thread overview]
Message-ID: <5bc4c4570910190904t1ee39a02i8df1354ca8929a2a@mail.gmail.com> (raw)
In-Reply-To: <20091019052612.GE3366@gerrit.erg.abdn.ac.uk>
Hi Gerrit,
On Mon, Oct 19, 2009 at 2:26 AM, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
>
> | --- dccp_tree_work03.orig/net/dccp/ccids/lib/packet_history_sp.c 2009-10-08 22:58:21.418908270 -0300
> | +++ dccp_tree_work03/net/dccp/ccids/lib/packet_history_sp.c 2009-10-08 22:59:07.442411383 -0300
> | @@ -243,6 +243,7 @@
> | {
> | u64 s0 = tfrc_rx_hist_loss_prev(h)->tfrchrx_seqno,
> | s1 = tfrc_rx_hist_entry(h, 1)->tfrchrx_seqno,
> | + n1 = tfrc_rx_hist_entry(h, 1)->tfrchrx_ndp,
> | s2 = tfrc_rx_hist_entry(h, 2)->tfrchrx_seqno,
> | s3 = DCCP_SKB_CB(skb)->dccpd_seq;
> I have removed the old definition of n1, which was further below and which caused this warning.
>
> net/dccp/ccids/lib/packet_history_sp.c:276:7: warning: symbol 'n1' shadows an earlier
> net/dccp/ccids/lib/packet_history_sp.c:247:6: originally declared here
>
>
Well done!
> I thought again about the earlier suggestion to make 'num_losses' u64. Since li_losses sums the values
> stored in num_losses, it needs to have the same size (currently it is u32). But then another thought is
> that if there are so many losses that u32 overflows, then the performance is so bad anyway that it is
> better to turn off the receiver. Hence I have reverted it to u32, as per your original patch.
>
OK
> Please find attached a patch of the changes I made. As per posting, I have separated out the dccp.h part,
> since it is also useful in general.
OK, agreed!
Thank you,
BR,
Leandro.
prev parent reply other threads:[~2009-10-19 16:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-08 18:28 [PATCH 2/5] Implement loss counting on TFRC-SP receiver Ivo Calado
2009-09-13 16:12 ` Gerrit Renker
2009-09-15 0:39 ` Ivo Calado
2009-09-19 12:11 ` gerrit
[not found] ` <425e6efa0909231501p499059a4y3530d1a9f55b5a2a@mail.gmail.com>
2009-09-24 1:43 ` Ivo Calado
2009-10-01 20:40 ` Gerrit Renker
2009-10-13 17:18 ` [PATCHv2 2/4] " Ivo Calado
2009-10-19 5:16 ` dccp-test-tree [PATCH 1/1]: Count lost data packets in a burst loss Gerrit Renker
2009-11-06 0:16 ` Ivo Calado
2009-10-19 5:26 ` [PATCHv2 2/4] Implement loss counting on TFRC-SP receiver Gerrit Renker
2009-10-19 16:04 ` Leandro Sales [this message]
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=5bc4c4570910190904t1ee39a02i8df1354ca8929a2a@mail.gmail.com \
--to=leandroal@gmail.com \
--cc=dccp@vger.kernel.org \
--cc=gerrit@erg.abdn.ac.uk \
--cc=ivocalado@embedded.ufcg.edu.br \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).