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. Log Library
- 6. Command-line Library
- 7. Service Cores
- 8. Trace Library
- 9. RCU Library
- 10. Ring Library
- 11. Stack Library
- 12. Mempool Library
- 13. Mbuf Library
- 14. Poll Mode Driver
- 15. Generic flow API (rte_flow)
- 15.1. Overview
- 15.2. Flow rule
- 15.3. Rules management
- 15.4. Flow engine configuration
- 15.5. Asynchronous operations
- 15.5.1. Enqueue creation operation
- 15.5.2. Enqueue creation by index operation
- 15.5.3. Enqueue destruction operation
- 15.5.4. Enqueue update operation
- 15.5.5. Enqueue indirect action creation operation
- 15.5.6. Enqueue indirect action destruction operation
- 15.5.7. Enqueue indirect action update operation
- 15.5.8. Enqueue indirect action query operation
- 15.5.9. Push enqueued operations
- 15.5.10. Pull enqueued operations
- 15.5.11. Calculate hash
- 15.6. Flow isolated mode
- 15.7. Verbose error reporting
- 15.8. Helpers
- 15.9. Caveats
- 15.10. PMD interface
- 15.11. Device compatibility
- 16. Switch Representation within DPDK Applications
- 17. Traffic Metering and Policing API
- 18. Traffic Management API
- 19. Wireless Baseband Device Library
- 19.1. Design Principles
- 19.2. Device Management
- 19.3. Device Operation Capabilities
- 19.4. Operation Processing
- 19.4.1. Enqueue / Dequeue Burst APIs
- 19.4.2. Operation Representation
- 19.4.3. Operation Management and Allocation
- 19.4.4. BBDEV Inbound/Outbound Memory
- 19.4.5. BBDEV Turbo Encode Operation
- 19.4.6. BBDEV Turbo Decode Operation
- 19.4.7. BBDEV LDPC Encode Operation
- 19.4.8. BBDEV LDPC Decode Operation
- 19.4.9. BBDEV FFT Operation
- 19.4.10. BBDEV MLD-TS Operation
- 19.5. Sample code
- 20. Cryptography Device Library
- 21. Compression Device Library
- 22. RegEx Device Library
- 23. Machine Learning Device Library
- 23.1. Design Principles
- 23.2. Device Operations
- 23.2.1. Device Creation
- 23.2.2. Device Identification
- 23.2.3. Device Features and Capabilities
- 23.2.4. Device Configuration
- 23.2.5. Configuration of Queue Pairs
- 23.2.6. Logical Cores, Memory and Queues Pair Relationships
- 23.2.7. Configuration of Machine Learning models
- 23.2.8. Enqueue / Dequeue
- 23.2.9. Quantize and Dequantize
- 24. DMA Device Library
- 25. General-Purpose Graphics Processing Unit Library
- 26. Security Library
- 27. Rawdevice Library
- 28. Link Bonding Poll Mode Driver Library
- 28.1. Link Bonding Modes Overview
- 28.2. Implementation Details
- 28.3. Using Link Bonding Devices
- 28.4. Testpmd driver specific commands
- 28.4.1. create bonding device
- 28.4.2. add bonding member
- 28.4.3. remove bonding member
- 28.4.4. set bonding mode
- 28.4.5. set bonding primary
- 28.4.6. set bonding mac
- 28.4.7. set bonding balance_xmit_policy
- 28.4.8. set bonding mon_period
- 28.4.9. set bonding lacp dedicated_queue
- 28.4.10. set bonding agg_mode
- 28.4.11. show bonding config
- 29. Timer Library
- 30. Hash Library
- 30.1. Hash API Overview
- 30.2. Multi-process support
- 30.3. Multi-thread support
- 30.4. Extendable Bucket Functionality support
- 30.5. Implementation Details (non Extendable Bucket Case)
- 30.6. Implementation Details (with Extendable Bucket)
- 30.7. Entry distribution in hash table
- 30.8. Use Case: Flow Classification
- 30.9. References
- 31. Toeplitz Hash Library
- 32. Elastic Flow Distributor Library
- 33. Membership Library
- 34. LPM Library
- 35. LPM6 Library
- 36. FIB Library
- 37. RIB Library
- 38. Packet Distributor Library
- 39. Reorder Library
- 40. IP Fragmentation and Reassembly Library
- 41. Generic Receive Offload Library
- 42. Generic Segmentation Offload Library
- 43. IPsec Packet Processing Library
- 44. PDCP Protocol Processing Library
- 45. Packet Capture Next Generation Library
- 46. Packet Capture Library
- 47. Multi-process Support
- 48. Thread Safety of DPDK Functions
- 49. Event Device Library
- 49.1. Event struct
- 49.2. API Walk-through
- 49.2.1. Init and Config
- 49.2.2. Setting up Queues
- 49.2.3. Setting up Ports
- 49.2.4. Linking Queues and Ports
- 49.2.5. Linking Queues to Ports with link profiles
- 49.2.6. Starting the EventDev
- 49.2.7. Ingress of New Events
- 49.2.8. Forwarding of Events
- 49.2.9. Egress of Events
- 49.2.10. Quiescing Event Ports
- 49.2.11. Stopping the EventDev
- 49.3. Summary
- 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. Event DMA Adapter Library
- 54.1. Adapter Modes
- 54.2. API Overview
- 54.2.1. Create an adapter instance
- 54.2.2. Event device configuration for service based adapter
- 54.2.3. Querying adapter capabilities
- 54.2.4. Adding vchan to the adapter instance
- 54.2.5. Configuring service function
- 54.2.6. Set event response information
- 54.2.7. Start the adapter instance
- 54.2.8. Get adapter statistics
- 54.2.9. Set/Get adapter runtime configuration parameters
- 55. Dispatcher Library
- 56. Quality of Service (QoS) Framework
- 57. Power Management
- 58. Packet Classification and Access Control
- 59. Packet Framework
- 60. Vhost Library
- 61. Metrics Library
- 62. Telemetry Library
- 63. Berkeley Packet Filter Library
- 64. Graph Library and Inbuilt Nodes
- 64.1. Features
- 64.2. Advantages of Graph architecture
- 64.3. Performance tuning parameters
- 64.4. Programming model
- 64.4.1. Anatomy of Node:
- 64.4.2. Node creation and registration
- 64.4.3. Link the Nodes to create the graph topology
- 64.4.4. Create the graph object
- 64.4.5. Graph models
- 64.4.6. In fast path
- 64.4.7. Context update when graph walk in action
- 64.4.8. Get the node statistics using graph cluster
- 64.4.9. Node writing guidelines
- 64.4.10. Static nodes
- 64.4.11. Intermediate nodes
- 64.5. Graph object memory layout
- 64.6. Inbuilt Nodes
- 65. Installing DPDK Using the meson build system
- 66. Running DPDK Unit Tests with Meson
- 67. Building Your Own Application
- 68. Performance Optimization Guidelines
- 69. Writing Efficient Code
- 70. Link Time Optimization
- 71. Profile Your Application
- 72. Running AddressSanitizer
- 73. Glossary