netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Keyur Chudgar" <kchudgar.linux@gmail.com>
To: netdev@vger.kernel.org
Subject: Single packet receiving in multiple ring buffers
Date: Wed, 21 May 2008 18:35:18 -0700	[thread overview]
Message-ID: <a967d7d00805211835q241f8edai6253659330b8e6cf@mail.gmail.com> (raw)

Hi,

I have a question regarding packets received in multiple ring buffers
from hw interface,
if the packet size is larger than the ring buffer size.

The way generally I saw this is done is,
1. Initially allocate skb with MTU size and configure ring buffer
2. If packet comes in multiple ring buffers, they copy these buffers
and make a new single
skb out of it
3. Send a single skb to netif_rx

The point 2 above can be done either using memcpy or DMA. But in any
case, we need a copy.

Does anybody know, if there is a way, we can avoid the copy operation
while a single packet
received in multiple ring buffers?

Thanks,
- Keyur

             reply	other threads:[~2008-05-22  1:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-22  1:35 Keyur Chudgar [this message]
2008-05-22  6:40 ` Single packet receiving in multiple ring buffers Evgeniy Polyakov
     [not found]   ` <31256957387BB54C8B9AFE88AA5C0564044A1834@SDCEXCHANGE01.ad.amcc.com>
2008-05-22 18:14     ` Evgeniy Polyakov
     [not found]       ` <31256957387BB54C8B9AFE88AA5C0564044A1846@SDCEXCHANGE01.ad.amcc.com>
2008-05-22 18:49         ` Evgeniy Polyakov
2008-05-22 18:57           ` David Miller
     [not found]             ` <31256957387BB54C8B9AFE88AA5C0564044A1869@SDCEXCHANGE01.ad.amcc.com>
2008-05-23  7:09               ` David Miller
2008-05-23 12:00             ` Evgeniy Polyakov
     [not found]               ` <31256957387BB54C8B9AFE88AA5C0564044A1951@SDCEXCHANGE01.ad.amcc.com>
2008-05-25 13:00                 ` Evgeniy Polyakov
2008-05-25 13:04                   ` David Miller
2008-05-25 13:31                     ` Evgeniy Polyakov
     [not found]                   ` <31256957387BB54C8B9AFE88AA5C0564044A1B23@SDCEXCHANGE01.ad.amcc.com>
2008-05-27 17:41                     ` Evgeniy Polyakov
     [not found]                   ` <31256957387BB54C8B9AFE88AA5C0564044A1DC1@SDCEXCHANGE01.ad.amcc.com>
2008-05-29 14:45                     ` Evgeniy Polyakov
     [not found]                       ` <31256957387BB54C8B9AFE88AA5C0564044A1DD0@SDCEXCHANGE01.ad.amcc.com>
2008-05-29 15:35                         ` Evgeniy Polyakov
     [not found]                           ` <31256957387BB54C8B9AFE88AA5C0564044A1DF1@SDCEXCHANGE01.ad.amcc.com>
2008-05-29 16:41                             ` Evgeniy Polyakov

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=a967d7d00805211835q241f8edai6253659330b8e6cf@mail.gmail.com \
    --to=kchudgar.linux@gmail.com \
    --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).