Programmer’s Guide
- 1. Introduction
- 2. Overview
- 3. Source Organization
- 4. Environment Abstraction Layer
- 4.1. EAL in a Linux-userland Execution Environment
- 4.1.1. Initialization and Core Launching
- 4.1.2. Shutdown and Cleanup
- 4.1.3. Multi-process Support
- 4.1.4. Memory Mapping Discovery and Memory Reservation
- 4.1.5. Support for Externally Allocated Memory
- 4.1.6. Per-lcore and Shared Variables
- 4.1.7. Logs
- 4.1.8. CPU Feature Identification
- 4.1.9. User Space Interrupt Event
- 4.1.10. Block list
- 4.1.11. Misc Functions
- 4.1.12. Lock annotations
- 4.1.13. IOVA Mode Detection
- 4.1.14. IOVA Mode Configuration
- 4.1.15. Max SIMD bitwidth
- 4.2. Memory Segments and Memory Zones (memzone)
- 4.3. Multiple pthread
- 4.4. Malloc
- 4.1. EAL in a Linux-userland Execution Environment
- 5. Service Cores
- 6. Trace Library
- 7. RCU Library
- 8. Ring Library
- 9. Stack Library
- 10. Mempool Library
- 11. Mbuf Library
- 12. Poll Mode Driver
- 13. Generic flow API (rte_flow)
- 13.1. Overview
- 13.2. Flow rule
- 13.3. Rules management
- 13.4. Flow engine configuration
- 13.5. Asynchronous operations
- 13.5.1. Enqueue creation operation
- 13.5.2. Enqueue creation by index operation
- 13.5.3. Enqueue destruction operation
- 13.5.4. Enqueue update operation
- 13.5.5. Enqueue indirect action creation operation
- 13.5.6. Enqueue indirect action destruction operation
- 13.5.7. Enqueue indirect action update operation
- 13.5.8. Enqueue indirect action query operation
- 13.5.9. Push enqueued operations
- 13.5.10. Pull enqueued operations
- 13.6. Flow isolated mode
- 13.7. Verbose error reporting
- 13.8. Helpers
- 13.9. Caveats
- 13.10. PMD interface
- 13.11. Device compatibility
- 14. Switch Representation within DPDK Applications
- 15. Traffic Metering and Policing API
- 16. Traffic Management API
- 17. Wireless Baseband Device Library
- 17.1. Design Principles
- 17.2. Device Management
- 17.3. Device Operation Capabilities
- 17.4. Operation Processing
- 17.4.1. Enqueue / Dequeue Burst APIs
- 17.4.2. Operation Representation
- 17.4.3. Operation Management and Allocation
- 17.4.4. BBDEV Inbound/Outbound Memory
- 17.4.5. BBDEV Turbo Encode Operation
- 17.4.6. BBDEV Turbo Decode Operation
- 17.4.7. BBDEV LDPC Encode Operation
- 17.4.8. BBDEV LDPC Decode Operation
- 17.4.9. BBDEV FFT Operation
- 17.5. Sample code
- 18. Cryptography Device Library
- 19. Compression Device Library
- 20. RegEx Device Library
- 21. Machine Learning Device Library
- 21.1. Design Principles
- 21.2. Device Operations
- 21.2.1. Device Creation
- 21.2.2. Device Identification
- 21.2.3. Device Features and Capabilities
- 21.2.4. Device Configuration
- 21.2.5. Configuration of Queue Pairs
- 21.2.6. Logical Cores, Memory and Queues Pair Relationships
- 21.2.7. Configuration of Machine Learning models
- 21.2.8. Enqueue / Dequeue
- 21.2.9. Quantize and Dequantize
- 22. DMA Device Library
- 23. General-Purpose Graphics Processing Unit Library
- 24. Security Library
- 25. Rawdevice Library
- 26. Link Bonding Poll Mode Driver Library
- 26.1. Link Bonding Modes Overview
- 26.2. Implementation Details
- 26.3. Using Link Bonding Devices
- 26.4. Testpmd driver specific commands
- 26.4.1. create bonded device
- 26.4.2. add bonding slave
- 26.4.3. remove bonding slave
- 26.4.4. set bonding mode
- 26.4.5. set bonding primary
- 26.4.6. set bonding mac
- 26.4.7. set bonding balance_xmit_policy
- 26.4.8. set bonding mon_period
- 26.4.9. set bonding lacp dedicated_queue
- 26.4.10. set bonding agg_mode
- 26.4.11. show bonding config
- 27. Timer Library
- 28. Hash Library
- 28.1. Hash API Overview
- 28.2. Multi-process support
- 28.3. Multi-thread support
- 28.4. Extendable Bucket Functionality support
- 28.5. Implementation Details (non Extendable Bucket Case)
- 28.6. Implementation Details (with Extendable Bucket)
- 28.7. Entry distribution in hash table
- 28.8. Use Case: Flow Classification
- 28.9. References
- 29. Toeplitz Hash Library
- 30. Elastic Flow Distributor Library
- 31. Membership Library
- 32. LPM Library
- 33. LPM6 Library
- 34. FIB Library
- 35. RIB Library
- 36. Flow Classification Library
- 37. Packet Distributor Library
- 38. Reorder Library
- 39. IP Fragmentation and Reassembly Library
- 40. Generic Receive Offload Library
- 41. Generic Segmentation Offload Library
- 42. IPsec Packet Processing Library
- 43. PDCP Protocol Processing Library
- 44. Packet Capture Next Generation Library
- 45. Packet Capture Library
- 46. Multi-process Support
- 47. Kernel NIC Interface
- 48. Thread Safety of DPDK Functions
- 49. Event Device Library
- 50. Event Ethernet Rx Adapter Library
- 50.1. API Walk-through
- 50.1.1. Creating an Adapter Instance
- 50.1.2. Event device configuration for service based adapter
- 50.1.3. Adding Rx Queues to the Adapter Instance
- 50.1.4. Querying Adapter Capabilities
- 50.1.5. Configuring the Service Function
- 50.1.6. Starting the Adapter Instance
- 50.1.7. Getting Adapter Statistics
- 50.1.8. Getting Adapter queue config
- 50.1.9. Set/Get adapter runtime configuration parameters
- 50.1.10. Getting and resetting Adapter queue stats
- 50.1.11. Getting Adapter Instance ID
- 50.1.12. Interrupt Based Rx Queues
- 50.1.13. Rx Callback for SW Rx Adapter
- 50.1.14. Rx event vectorization
- 50.1.15. Rx event vectorization for SW Rx adapter
- 50.1. API Walk-through
- 51. Event Ethernet Tx Adapter Library
- 51.1. API Walk-through
- 51.1.1. Creating an Adapter Instance
- 51.1.2. Event device configuration for service based adapter
- 51.1.3. Adding Tx Queues to the Adapter Instance
- 51.1.4. Querying Adapter Capabilities
- 51.1.5. Linking a Queue to the Adapter’s Event Port
- 51.1.6. Configuring the Service Function
- 51.1.7. Starting the Adapter Instance
- 51.1.8. Enqueuing Packets to the Adapter
- 51.1.9. Getting Adapter Statistics
- 51.1.10. Getting Adapter Instance ID
- 51.1.11. Tx event vectorization
- 51.1.12. Queue start/stop
- 51.1.13. Set/Get adapter runtime configuration parameters
- 51.1. API Walk-through
- 52. Event Timer Adapter Library
- 53. Event Crypto Adapter Library
- 53.1. Adapter Mode
- 53.2. API Overview
- 53.2.1. Create an adapter instance
- 53.2.2. Event device configuration for service based adapter
- 53.2.3. Querying adapter capabilities
- 53.2.4. Adding queue pair to the adapter instance
- 53.2.5. Configure the service function
- 53.2.6. Set event request/response information
- 53.2.7. Enable event vectorization
- 53.2.8. Start the adapter instance
- 53.2.9. Get adapter statistics
- 53.2.10. Set/Get adapter runtime configuration parameters
- 54. Quality of Service (QoS) Framework
- 55. Power Management
- 56. Packet Classification and Access Control
- 57. Packet Framework
- 58. Vhost Library
- 59. Metrics Library
- 60. Telemetry Library
- 61. Berkeley Packet Filter Library
- 62. Graph Library and Inbuilt Nodes
- 62.1. Features
- 62.2. Advantages of Graph architecture
- 62.3. Performance tuning parameters
- 62.4. Programming model
- 62.4.1. Anatomy of Node:
- 62.4.2. Node creation and registration
- 62.4.3. Link the Nodes to create the graph topology
- 62.4.4. Create the graph object
- 62.4.5. Graph models
- 62.4.6. In fast path
- 62.4.7. Context update when graph walk in action
- 62.4.8. Get the node statistics using graph cluster
- 62.4.9. Node writing guidelines
- 62.4.10. Static nodes
- 62.4.11. Intermediate nodes
- 62.5. Graph object memory layout
- 62.6. Inbuilt Nodes
- 63. Installing DPDK Using the meson build system
- 64. Running DPDK Unit Tests with Meson
- 65. Building Your Own Application
- 66. Performance Optimization Guidelines
- 67. Writing Efficient Code
- 68. Link Time Optimization
- 69. Profile Your Application
- 70. Running AddressSanitizer
- 71. Glossary