linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Paul Mackerras <paulus@samba.org>
Cc: acurtis@onz.com, linuxppc-dev@lists.linuxppc.org
Subject: Re: 8260 and skb implementation
Date: Thu, 09 May 2002 12:26:08 -0400	[thread overview]
Message-ID: <3CDAA320.1050707@embeddededge.com> (raw)
In-Reply-To: 15577.52276.175752.518900@argo.ozlabs.ibm.com


Paul Mackerras wrote:

> Doing zero-copy receive requires intelligent adaptor firmware/hardware
> that can look in the headers and put the packet in different places
> depending on what it finds.

????

> ....  Very few adaptors can do this and I
> assume the CPM can't.

Piece of cake with the CPM.....I just didn't know the Linux protocol
stack wanted these separated and where to put them if it did.  I can
also assemble packets from fragments just as easily.  I can even
align the headers and data in separate cache lines if you want.

When we discuss the 'zero-copy' I assumed (I guess incorrectly) that
we DMA directly into the receive SK buffer.  In the past on 8xx, we have
allocated uncached memory for the CPM receive buffers and then copied
into the receive SK buffer.  We have to do this because of other
data shared by the cache line and the SK buffer.

> Cache coherence shouldn't be a problem on transmission ....

It never has been and we have always used the sk buffer directly for
DMA output.  It's always been the ability to properly allocate the
sk buffer for the received.

In any case, none of this is an issue for the 82xx, which originally
started this thread.

Thanks.


	-- Dan


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2002-05-09 16:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-07 14:34 8260 and skb implementation Allen Curtis
2002-05-07 15:53 ` Dan Malek
2002-05-08  5:17   ` Allen Curtis
2002-05-08  5:51     ` Dan Malek
2002-05-08 14:18       ` Allen Curtis
2002-05-08 15:21         ` Dan Malek
2002-05-09  1:09       ` Paul Mackerras
2002-05-09 16:26         ` Dan Malek [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=3CDAA320.1050707@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=acurtis@onz.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=paulus@samba.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).