Buffer configuration method and device
A configuration method and a configuration device technology, which are applied in the field of data transmission, can solve the problems of buffer occupation, large number of buffers, full BD ring, etc., and achieve the effects of reducing buffer usage, improving buffer utilization, and simple algorithms
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0059] The technical scheme of the present invention will be described in detail below by taking the Gigabit Ethernet port as an example. Such as image 3 As shown, this example includes the steps:
[0060] 1. Construct a BD ring with a length of n, and initialize it to an unacceptable state first.
[0061] 2. During initialization, pre-apply for m buffers and store them in the buffer pool. They are used to request buffers when mounting BDs in batches, so as to avoid applying for buffers from the system and reduce time overhead. Then apply for m buffers, connect to the first m BDs of the BD ring, and initialize the corresponding BDs to the "receivable" state, and start hardware reception.
[0062] 3. When a BD finishes receiving DMA data, an interrupt is generated.
[0063] 4. Query the number of BDs currently received in the interrupt service routine, assuming it is z. Get z buffers from the buffer pool, starting after the last BD that was last mounted. And initialize th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com