Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: patrick.ohly@intel.com
Cc: nanog@85d5b20a518b8f6864949bd940457dc124746ddc.nosense.org,
	netdev@vger.kernel.org, opurdila@ixiacom.com
Subject: Re: Storing hardware timestamps - how about using the new skb's control block?
Date: Wed, 12 Nov 2008 00:39:27 -0800 (PST)	[thread overview]
Message-ID: <20081112.003927.153710640.davem@davemloft.net> (raw)
In-Reply-To: <1226478438.31699.55.camel@ecld0pohly>

From: Patrick Ohly <patrick.ohly@intel.com>
Date: Wed, 12 Nov 2008 09:27:18 +0100

> My understanding of sk_buff->cb might be wrong, but isn't each layer
> allowed to overwrite it as the packet traverses the different queues?

Right.

> skb_share_check() is not mandatory:

And besides, skb_share_check() doesn't check if somebody "owns" the
skb->cb[]

And if you bump the reference count or something silly like that to
get skb_share_check() to copy the packet, every single locally
destined TCP packet will be copied.  That will effectively kill
performance.


      reply	other threads:[~2008-11-12  8:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11 20:53 Storing hardware timestamps - how about using the new skb's control block? Mark Smith
2008-11-12  8:27 ` Patrick Ohly
2008-11-12  8:39   ` David Miller [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=20081112.003927.153710640.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=nanog@85d5b20a518b8f6864949bd940457dc124746ddc.nosense.org \
    --cc=netdev@vger.kernel.org \
    --cc=opurdila@ixiacom.com \
    --cc=patrick.ohly@intel.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