From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "ustc.mail" <backyes@mail.ustc.edu.cn>
Cc: linux-pci@vger.kernel.org, linux-arch@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: 【Question】Whether it's legal to enable same physical DMA memory mapped for different NIC device?
Date: Tue, 3 Jan 2012 15:33:57 -0500 [thread overview]
Message-ID: <20120103203357.GD17472@phenom.dumpdata.com> (raw)
In-Reply-To: <CAJULonj9rFDKNCzpEXj2r3XjkYojy-CGYpVQ1RF8SxwLVrXqAA@mail.gmail.com>
On Wed, Dec 07, 2011 at 10:16:40PM +0800, ustc.mail wrote:
> Dear all,
>
> In NIC driver, to eliminate the overhead of dma_map_single() for DMA
> packet data, we have statically allocated huge DMA memory buffer ring
> at once instead of calling dma_map_single() per packet. Considering
> to further reduce the copy overhead between different NIC(port) ring
> while forwarding, one packet from a input NIC(port) will be
> transferred to output NIC(port) with no any copy action.
>
> To satisfy this requirement, the packet memory should be mapped into
> input port and unmapped when leaving input port, then mapped into
> output port and unmapped later.
>
> Whether it's legal to map the same DMA memory into input and output
> port simultaneously? If it's not, then the zero-copy for packet
> forwarding is not feasible?
>
Did you ever a get a response about this?
Is the output/input port on a seperate device function? Or is it
just a specific MMIO BAR in your PCI device?
> Hope PCI expert to post your suggestion.
>
> Thanks!
>
> --Yanfei
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-01-03 20:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 14:16 【Question】Whether it's legal to enable same physical DMA memory mapped for different NIC device? ustc.mail
2012-01-03 20:33 ` Konrad Rzeszutek Wilk [this message]
2012-01-04 2:44 ` Yanfei Wang
2012-01-04 15:59 ` James Bottomley
2012-01-05 12:40 ` Yanfei Wang
2012-01-05 16:20 ` James Bottomley
2012-01-06 2:05 ` Yanfei Wang
2012-01-06 16:00 ` James Bottomley
2012-01-05 18:48 ` Don Dutile
2012-01-06 2:11 ` Yanfei Wang
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=20120103203357.GD17472@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=backyes@mail.ustc.edu.cn \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.