A transmission method for zero copy network packet

A transmission method for zero copy network packet

  • CN 101,150,487 A
  • Filed: 11/15/2007
  • Published: 03/26/2008
  • Est. Priority Date: 11/15/2007
  • Status: Active Application
First Claim
Patent Images

1. transmission method for zero copy network packet, wherein, described method comprises following operating procedure:

  • The function that A, application call interface library provide is opened equipment interface;

    B, open the equipment interface function and in the user'"'"'s space internal memory, apply for the continuous internal memory of a slice, and the buffering area first address is passed to kernel drive as message buffer;

    C, kernel drive according to buffering area first address and buffer size, structure buffer control structure, and the physical address of control structure passed to interface function, and described structure comprises the physical address of each buffering area in the information of message buffer formation and the formation;

    D, interface function be according to the address of buffer control structure, obtains information in the buffer control structure by memory-mapped;

    E, NIC driver get freebuf as the DMA buffering area that sends message from buffering sector row, and the message data that sends is sent in the message sending buffer in the user memory without the direct DMA of kernel spacing;

    Message data in F, the application program process user internal memory in the message sending buffer.

View all claims
    ×
    ×

    Thank you for your feedback

    ×
    ×