What problem does it solve?
Developers offloading compression to NVIDIA BlueField DPUs or ConnectX NICs face a complex API surface: per-task capability queries, mmap permission matrices, buffer sizing against device limits, and layered DOCA_ERROR_* diagnostics. This Skill teaches AI agents the correct DOCA Compress workflows so they produce grounded, version-aware guidance instead of hallucinated API calls.
Core Features & Use Cases
- Task configuration guidance: Walks through enabling compress-deflate, decompress-deflate, decompress-lz4-stream, and decompress-lz4-block tasks on a doca_compress context, including decompress-only as a valid standalone shape.
- Capability discovery and sizing: Enforces runtime doca_compress_cap_* queries for task support and per-task maximum buffer sizes before any submission, plus the source/destination mmap permission matrix.
- Offload path selection: Provides the size-threshold rule for deciding between accelerator offload and CPU zlib/zstd, and routes pure mmap-to-mmap copies to doca-dma.
- Debug and validation workflows: Supplies a round-trip smoke test methodology, an iterative test loop, a five-phase debug loop, and a bounded rollback procedure.
- Use Case: A developer asks their agent to "decompress incoming network data on the BlueField" — the agent loads this Skill, queries device capabilities, configures a decompress-only context with correct mmap permissions, and validates with a known DEFLATE fixture before bulk traffic.
Quick Start
Ask your agent to help you configure a DOCA Compress context to offload gzip-style DEFLATE compression of a large buffer on your BlueField DPU, including capability checks and a round-trip validation.