02.08.2013 Views

P4080 PCIe Adapter SDK User Guide Production Release

P4080 PCIe Adapter SDK User Guide Production Release

P4080 PCIe Adapter SDK User Guide Production Release

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Freescale Semiconductor<br />

o pkt_drv_process_command_ring(): Poll for Command enqueues by the host driver<br />

to the Tx Command Ring. Commands are dequeued from the ring and appropriate<br />

handlers invoked for command processing. Examples of hardware function driver<br />

commands sent by the host include Hardware Function Driver load and unload. For<br />

the Ethernet Hardware Function, Frame Queues are also initialized by the handlers<br />

invoked as a result of command requests from Host Packet Driver.<br />

o pkt_drv_host_poll():_Poll for Packet enqueues by host driver to the host Tx ring of<br />

the core. Packets are dequeued from the Tx ring and enqueued to the Tx FQ as<br />

described in the transmit flow in Section 4.5<br />

o dma_channel_poll(): Poll for DMA completions in DMA chain.<br />

o qman_poll(): Poll for received packets from the qman software portal. Packets are<br />

enqueued to the corresponding host Rx ring and MSI asserted to the corresponding<br />

core. This is described in the receive flow of Section 4.6<br />

o Poll for DMA completions in DMA chain.<br />

o bman_poll(): Poll for BMan driver notifications to the Packet process application.<br />

o Poll for DMA completions in DMA chain.<br />

The worker threads running on other cores execute the following tasks:<br />

Initializing the bman/qman portals for the core<br />

Running the packet processing poll loop that does:<br />

o pkt_drv_host_poll():Poll for packet enqueues by host driver to the host Tx ring of<br />

the core. Packets are dequeued from the Tx ring and enqueued to the Tx FQ as<br />

described in the transmit flow in Section 4.5<br />

o dma_channel_poll(): Poll for DMA completions in DMA chain.<br />

o qman_poll(): Poll for received packets from the qman software portal. Packets are<br />

enqueued to the corresponding host Rx ring and MSI asserted to the corresponding<br />

core. This is described in the receive flow of Section 4.6<br />

o Poll for DMA completions in DMA chain.<br />

o bman_poll(): Poll for BMan driver notifications to the Packet process application.<br />

© Freescale Semiconductor, Inc., 2011. All rights reserved.<br />

Freescale Confidential Proprietary Page 17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!