linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 【Question】Whether it's legal to enable same physical DMA memory mapped for different NIC device?
@ 2011-12-07 14:16 ustc.mail
  2012-01-03 20:33 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 10+ messages in thread
From: ustc.mail @ 2011-12-07 14:16 UTC (permalink / raw)
  To: linux-pci, linux-arch, linux-kernel

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?

Hope PCI expert to post your suggestion.

Thanks!

--Yanfei


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-01-06 16:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).