From: David Miller <davem@davemloft.net>
To: jarkao2@gmail.com
Cc: alexandre.sidorenko@hp.com, netdev@vger.kernel.org,
shemminger@vyatta.com
Subject: Re: An inconsistency/bug in ingress netem timestamps
Date: Fri, 17 Apr 2009 05:04:22 -0700 (PDT) [thread overview]
Message-ID: <20090417.050422.134655407.davem@davemloft.net> (raw)
In-Reply-To: <20090416214846.GA9375@ami.dom.local>
From: Jarek Poplawski <jarkao2@gmail.com>
Date: Thu, 16 Apr 2009 23:48:46 +0200
> David Miller wrote, On 04/16/2009 12:10 PM:
>
>> Since IFB completely bypasses netif_rx() and netif_receive_skb() I
>> think it should unconditionally set skb->tstamp.tv64 to zero and
>> invoke net_timestamp()
>
> IFB calls netif_rx() and I don't understand why do we need to update
> tstamp again except for this netem case.
>
>> This would match the behavior of loopback and tunnels, and in my
>> opinion this is reasonable. There will be virtually no overhead
>> added unless timestamping is enabled via ping or similar, and in
>> return we get what I think is correctness :-)
>
> I think we need some consistency in counting or not counting packet
> scheduling delays into timestamps. Anyway we should avoid unnecessary
> updates like now, so I'm proposing something different (for testing).
Ok, now I understand this situation even more clearly, thanks
Jarek.
I think your patch is the most palatable solution I've seen
so far, but I want to consider it some more.
Meanwhile, Alexandre can you test Jarek's patch for your case?
Thanks!
next prev parent reply other threads:[~2009-04-17 12:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-13 19:50 An inconsistency/bug in ingress netem timestamps Alex Sidorenko
2009-04-15 19:50 ` Jarek Poplawski
2009-04-15 20:10 ` Alex Sidorenko
2009-04-15 20:26 ` Jarek Poplawski
2009-04-15 20:29 ` Stephen Hemminger
2009-04-15 21:00 ` Alex Sidorenko
2009-04-15 23:41 ` David Miller
2009-04-16 10:10 ` David Miller
2009-04-16 12:09 ` Alex Sidorenko
2009-04-16 21:48 ` Jarek Poplawski
2009-04-17 12:04 ` David Miller [this message]
2009-04-17 16:50 ` Alex Sidorenko
2009-04-17 20:08 ` [PATCH] " Jarek Poplawski
2009-04-20 9:15 ` David Miller
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=20090417.050422.134655407.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexandre.sidorenko@hp.com \
--cc=jarkao2@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/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).