Yuri Shchors(deleted)
|
Re: RE: sending data from io-pkt module upon DMA completion
|
Yuri Shchors(deleted)
03/18/2009 12:19 PM
post24715
|
Re: RE: sending data from io-pkt module upon DMA completion
> Hi Yura:
>
> I'm a bit curious as to what you're trying to accomplish. Do you have a
> network card that you're trying to write a driver for or is this some
> other sort of application?
>
> Robert.
>
Hi,
I have a 533 Mhz, MPC8360 chip with DMA block and I need to push large amounts of data through it's 1Gbit ethernet
MAC(up to max capacity - 125Mb/sec). The data arrives from external bus which has sufficient bandwidth. I've written
standalone program that uses DMA to get the data. Now, I need to send it through the network. Writing a simple test
program that sends raw IP packets, yields rather poor result (max speed about 40Mb/s), so I've decided to write io-pkt
module to avoid unnecessary copying of data, since I know it's physical location.
Using mmap I can access the data brought by DMA. The io-pkt module
should make a packets from the data and send them. The problem is in getting notification from external program. The
simplest way seem to be in using pulse_attach in module initialization routine and doing all the work in the pulse
handler, but I don't know if it'll block rest of the io-pkt activity and in which thread's context it gets called. The
thread is other possibility, which seems to be more complicated to me. Any advice is welcome.
Yura.
|
|
|