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 indirect action creation operation
- 13.5.5. Enqueue indirect action destruction operation
- 13.5.6. Enqueue indirect action update operation
- 13.5.7. Enqueue indirect action query operation
- 13.5.8. Push enqueued operations
- 13.5.9. 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. Packet Capture Next Generation Library
- 43. Packet Capture Library
- 44. Multi-process Support
- 45. Kernel NIC Interface
- 46. Thread Safety of DPDK Functions
- 47. Event Device Library
- 48. Event Ethernet Rx Adapter Library
- 48.1. API Walk-through
- 48.1.1. Creating an Adapter Instance
- 48.1.2. Event device configuration for service based adapter
- 48.1.3. Adding Rx Queues to the Adapter Instance
- 48.1.4. Querying Adapter Capabilities
- 48.1.5. Configuring the Service Function
- 48.1.6. Starting the Adapter Instance
- 48.1.7. Getting Adapter Statistics
- 48.1.8. Getting Adapter queue config
- 48.1.9. Set/Get adapter runtime configuration parameters
- 48.1.10. Getting and resetting Adapter queue stats
- 48.1.11. Getting Adapter Instance ID
- 48.1.12. Interrupt Based Rx Queues
- 48.1.13. Rx Callback for SW Rx Adapter
- 48.1.14. Rx event vectorization
- 48.1.15. Rx event vectorization for SW Rx adapter
- 48.1. API Walk-through
- 49. Event Ethernet Tx Adapter Library
- 49.1. API Walk-through
- 49.1.1. Creating an Adapter Instance
- 49.1.2. Event device configuration for service based adapter
- 49.1.3. Adding Tx Queues to the Adapter Instance
- 49.1.4. Querying Adapter Capabilities
- 49.1.5. Linking a Queue to the Adapter’s Event Port
- 49.1.6. Configuring the Service Function
- 49.1.7. Starting the Adapter Instance
- 49.1.8. Enqueuing Packets to the Adapter
- 49.1.9. Getting Adapter Statistics
- 49.1.10. Getting Adapter Instance ID
- 49.1.11. Tx event vectorization
- 49.1.12. Queue start/stop
- 49.1.13. Set/Get adapter runtime configuration parameters
- 49.1. API Walk-through
- 50. Event Timer Adapter Library
- 51. Event Crypto Adapter Library
- 51.1. Adapter Mode
- 51.2. API Overview
- 51.2.1. Create an adapter instance
- 51.2.2. Event device configuration for service based adapter
- 51.2.3. Querying adapter capabilities
- 51.2.4. Adding queue pair to the adapter instance
- 51.2.5. Configure the service function
- 51.2.6. Set event request/response information
- 51.2.7. Enable event vectorization
- 51.2.8. Start the adapter instance
- 51.2.9. Get adapter statistics
- 51.2.10. Set/Get adapter runtime configuration parameters
- 52. Quality of Service (QoS) Framework
- 53. Power Management
- 54. Packet Classification and Access Control
- 55. Packet Framework
- 56. Vhost Library
- 57. Metrics Library
- 58. Telemetry Library
- 59. Berkeley Packet Filter Library
- 60. IPsec Packet Processing Library
- 61. Graph Library and Inbuilt Nodes
- 61.1. Features
- 61.2. Advantages of Graph architecture
- 61.3. Performance tuning parameters
- 61.4. Programming model
- 61.4.1. Anatomy of Node:
- 61.4.2. Node creation and registration
- 61.4.3. Link the Nodes to create the graph topology
- 61.4.4. Create the graph object
- 61.4.5. Multicore graph processing
- 61.4.6. In fast path
- 61.4.7. Context update when graph walk in action
- 61.4.8. Get the node statistics using graph cluster
- 61.4.9. Node writing guidelines
- 61.4.10. Static nodes
- 61.4.11. Intermediate nodes
- 61.5. Graph object memory layout
- 61.6. Inbuilt Nodes
- 62. Installing DPDK Using the meson build system
- 63. Running DPDK Unit Tests with Meson
- 64. Building Your Own Application
- 65. Performance Optimization Guidelines
- 66. Writing Efficient Code
- 67. Link Time Optimization
- 68. Profile Your Application
- 69. Running AddressSanitizer
- 70. Glossary