From: Octavian Purdila <opurdila@ixiacom.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: netdev@vger.kernel.org
Subject: Re: [rfc] new sk_buff member: hwstamp
Date: Mon, 14 Jul 2008 21:49:24 +0300 [thread overview]
Message-ID: <200807142149.24966.opurdila@ixiacom.com> (raw)
In-Reply-To: <87abgkz8bc.fsf@basil.nowhere.org>
On Monday 14 July 2008, Andi Kleen wrote:
>
> You only need this between the driver and the socket recvmsg(), don't you?
>
Correct.
> One possible alternative (I admit I haven't thought all the implications
> through) would be to use a second magic internal skb for this which has the
> same UDP header, but as only payload the time stamp. Disadvantage would
> be the requirement to do header parsing in the driver, but often
> hardware does that already.
>
Hmm, this sounds interesting.
Maybe only keep the timestamp without the UDP header and queue the skb
as "ancillary" data?
And we can probably do this in a generic way for all sort of socket types
(PF_PACKET comes to mind) - just add a special ancillary data queue in the
socket. Sure this would mean stuffing the sockets structures - not very
different from adding new stuff in skb :), but I feel it is a bit more
generic: an easy to extend channel of communication between drivers/hw and
userspace without future structures overhead.
And I think this will help with solving the hw TX stamp problem I am looking
into, as well (how to send the hw generated TX stamp to application).
Thanks,
tavi
next prev parent reply other threads:[~2008-07-14 18:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-14 15:43 [rfc] new sk_buff member: hwstamp Octavian Purdila
2008-07-14 17:25 ` Andi Kleen
2008-07-14 17:57 ` Oliver Hartkopp
2008-07-14 18:30 ` Octavian Purdila
2008-07-14 18:58 ` Oliver Hartkopp
2008-07-14 20:07 ` Octavian Purdila
2008-07-14 18:49 ` Octavian Purdila [this message]
2008-07-15 0:43 ` Stephen Hemminger
2008-07-15 10:39 ` Octavian Purdila
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=200807142149.24966.opurdila@ixiacom.com \
--to=opurdila@ixiacom.com \
--cc=andi@firstfloor.org \
--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).