From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: dccp@vger.kernel.org
Subject: Re: [RFC]: tfrc_tx_hist_rtt
Date: Fri, 30 Nov 2007 12:46:12 +0000 [thread overview]
Message-ID: <20071130124612.GR12069@ghostprotocols.net> (raw)
In-Reply-To: <20071129172954.GL12069@ghostprotocols.net>
Em Fri, Nov 30, 2007 at 12:19:36PM +0000, Gerrit Renker escreveu:
> Sorry I only got this email today and it is a busy day, too.
>
> The changes look good and are in general a further improvement on the
> code. I like the idea of hiding the internals of the list structure in
> the source file.
>
> I wonder if one could go one step further and also take the timestamp
> directly when looking up the previous history sample, e.g.
>
> u32 tfrc_tx_hist_rtt(struct tfrc_tx_hist_entry *head, const u64 seqno)
> {
> u32 rtt = 0;
> struct tfrc_tx_hist_entry *packet = tfrc_tx_hist_find_entry(head, seqno);
>
> if (packet != NULL) {
> rtt = ktime_us_delta(ktime_get_real(), packet->stamp);
> /*
> * Garbage-collect older (irrelevant) entries:
> */
> tfrc_tx_hist_purge(&packet->next);
> }
>
> return rtt;
> }
>
> Just a suggestion.
I thought about that, but ccid3_hc_tx_packet_recv needs a timestamp some
lines below, when we reuse the ktime_get_real call.
- Arnaldo
next prev parent reply other threads:[~2007-11-30 12:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 17:29 [RFC]: tfrc_tx_hist_rtt Arnaldo Carvalho de Melo
2007-11-30 12:19 ` Gerrit Renker
2007-11-30 12:46 ` Arnaldo Carvalho de Melo [this message]
2007-11-30 13:00 ` Gerrit Renker
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=20071130124612.GR12069@ghostprotocols.net \
--to=acme@redhat.com \
--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.