Data transmission method and system
A data transmission and data message technology, applied in the field of data transmission, can solve the problems of reducing data transmission efficiency and achieve the effect of improving data transmission efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0045] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0046] The core idea of the present invention is: form a queue with all BDs without Valid bits, send out the data message in the buffer pointed to by the source buffer address of the occupied BD in the queue, and send the Cache information is written to unoccupied BDs in the queue.
[0047] image 3 It is a flow chart of using a BD ring queue without a Valid bit to transmit data in a DMA mode provided by an embodiment of the present invention, as shown in image 3 As shown, the specific steps are as follows:
[0048] Step 301: The CPU preliminarily forms N+1 (N>0) BDs without Valid bits into a circular queue, and sequentially numbers each BD as: 0-N according to the order in which the BDs are arranged in the circular queue.
[0049] Step 302: The CPU presets three pointers: Head, Tail and Last, and initializes Head=Tail=Last=0, t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 