From: Stephen Hemminger <shemminger@osdl.org>
To: Jonathan Day <imipak@yahoo.com>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>, netdev@vger.kernel.org
Subject: Re: Questions regarding network drivers
Date: Fri, 10 Nov 2006 09:55:21 -0800 [thread overview]
Message-ID: <20061110095521.058b2014@freekitty> (raw)
In-Reply-To: <661353.35559.qm@web31513.mail.mud.yahoo.com>
On Fri, 10 Nov 2006 09:34:33 -0800 (PST)
Jonathan Day <imipak@yahoo.com> wrote:
>
> --- Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:
>
> > On Thu, Nov 09, 2006 at 07:06:00PM -0800, Jonathan
> > Day (imipak@yahoo.com) wrote:
> > > Hi,
> > >
> > > I've got an interesting problem to contend with
> > and
> > > need some advice from the great wise ones here.
> > >
> > > First of all, is it possible (and/or "reasonable
> > > practice") when developing a network driver to do
> > > zero-copy transfers between main memory and the
> > > network device?
> >
> > What do you mean?
> > DMA from NIC memory into CPU memory?
>
> Yes. I want to bypass the kernel altogether and think
> there may be a way to do this, but want to make very
> certain that I'm not going down the wrong track.
>
This is not normally possible because network data could be intended
for multiple sockets. It is not possible to know where to DMA the
data to until you have done all the necessary protocol demultiplexing
and filtering. There has been talk of having really smart hardware
to help.
> The underlying problem is this. The group I'm working
> with is messing about with building their own
> networking device that will run at an equal speed to
> the bus leading to the host (2.5 gigabits/second). The
> device has its own DMA controller and can operate as
> bus master.
>
> It's my task to figure out how to get the data into
> the host at near-100% bandwidth without dropping
> anything, with minimal latency and real-time
> characteristics.
You might want to look at RDMA Infiniband model.
next prev parent reply other threads:[~2006-11-10 17:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 3:06 Questions regarding network drivers Jonathan Day
2006-11-10 10:00 ` Evgeniy Polyakov
2006-11-10 17:34 ` Jonathan Day
2006-11-10 17:55 ` Stephen Hemminger [this message]
2006-11-11 11:54 ` Evgeniy Polyakov
2006-11-11 23:21 ` Jonathan Day
2006-11-13 9:05 ` 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=20061110095521.058b2014@freekitty \
--to=shemminger@osdl.org \
--cc=imipak@yahoo.com \
--cc=johnpol@2ka.mipt.ru \
--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