Transmitting Packets by the NIC Driver

The driver must implement RtndTransmit and/or RtndTransmitEx. The driver must implement RtndTransmit to be used by the RT-TCP/IP Stack.

RtndTransmit transmits a single packet. It copies packet data to the driver’s packet buffer. In order to support this function, the driver must pre-allocate an array of packet buffers, indexed the same way as the ring buffer of DMA buffer descriptors. RtndTransmit must copy data to a driver buffer and use the driver buffer physical address in a DMA buffer descriptor.

If the driver does not implement RtndTransmitEx, it can service transmitted packets in a driver transmit complete thread (notified by the local event) or directly in the IST.

The following applies only to drivers which implement RtndTransmitEx.