/nvidia-doca-plugin:doca-gpunetiofrom NVIDIA DOCA
Guides hands-on DOCA GPUNetIO programming: wiring CUDA kernels to doca-eth queues, persistent kernel design, capability checks, and debugging DOCA_ERROR_* returns on BlueField/ConnectX.
Ships in NVIDIA DOCA. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Host checks. Commands here that inspect the user's DOCA host (listing or reading
/opt/mellanox/doca, release files such as/etc/mlnx-releaseor/etc/nvidia/bf-release,/dev/mst) or reach the BlueField (RShim, SSH, BMC) are for that host. Run them yourself only if the user confirms you are on it; otherwise answer from this skill, give the commands for the user to run, and treat values you can't see as unknown.
doca_gpu_eth_rxq / _txq and the persistent
kernel; do not rewrite it as host-CPU Ethernet.nvidia-peermem registration before changing queue type.Follow Loading order below. Open the tasks companion for configure / build / run. Open the capabilities companion for GPU vs host path selection. Do not open every companion file.
Where to start: This skill assumes DOCA is already installed,
the CUDA toolkit is installed and matched to the DOCA install, and
the user is doing hands-on GPUNetIO work — i.e. wiring a DOCA
network queue into a CUDA kernel on an NVIDIA GPU. Open
the tasks companion if the user wants to do something
(configure / build / modify / run / test / debug); open
the capabilities companion when the question is what
can GPUNetIO express on this version + this GPU. If the user has
not installed DOCA yet, route to
doca-setup/SKILL.md first; if the user has
not set up the underlying Ethernet RX/TX queues yet, that is a
DOCA Ethernet question — route to
doca-eth/SKILL.md.
The CLASSES of GPUNetIO questions this skill is built to answer, each with one worked example. The agent should treat the class as the load-bearing piece — the worked example is a single instance.
doca_gpu_eth_rxq built on top of a
representor doca_eth_rxq and counts them per-flow". Answered
by the persistent-kernel pattern in
cudaGetDeviceProperties against the CUDA device ordinal) in
DOCA_ERROR_NOT_SUPPORTED even though doca-eth came up
fine?" — worked example: "nvidia_peermem is not loaded so
GPUDirect RDMA is unavailable". Answered by the env preconditions
in ## Safety policy
cudaMalloc for the receive
buffer pool and register it with DOCA via doca_buf_arr_create + doca_buf_arr_set_target_gpu
before starting the context". Answered by the CUDA-allocator
doca-version/SKILL.md and adds the
GPUNetIO-specific DOCA must match CUDA overlay.DOCA_ERROR_* from a GPUNetIO call mean and
which layer caused it?" — worked example: "DOCA_ERROR_DRIVER
on doca_gpu_*_create — is it DOCA, CUDA, or the underlying
doca-eth queue?". Answered by the GPUNetIO overlay on the
cross-library taxonomy in
doca-debug/SKILL.md.This skill serves external developers building applications
that consume the DOCA GPUNetIO library — i.e., users whose code
calls doca_gpu_* from host C/C++ to stand up the per-GPU
context and the GPU-visible queue handles, and whose CUDA kernel
(.cu translation unit) uses those handles from device code to
submit / receive packets. The canonical target shape is the GPU
Packet Processing reference application: a CUDA persistent
kernel on an NVIDIA GPU that polls a GPU-visible RX queue and
processes packets in-place on the GPU. It is not for NVIDIA
developers contributing to DOCA GPUNetIO itself.
Language scope. DOCA GPUNetIO ships as a C / CUDA library
with pkg-config module name doca-gpunetio. The host-side API
is C; the device-side API is CUDA C++ used inside a .cu
kernel. The shipped samples and the GPU Packet Processing
reference application are written in C + CUDA C++ (NVIDIA's
choice). Other-language consumers are limited in practice — the
device-side API has no FFI escape hatch because the kernel must
be a CUDA translation unit — but a Rust / Go / Python host-side
wrapper that drives the host-side doca_gpu_* setup and
launches a CUDA kernel built separately is still useful, and the
skill keeps the lifecycle, capability-discovery, env-precondition,
and error-taxonomy guidance language-neutral.
Load this skill when the user is doing hands-on DOCA GPUNetIO work, in any host language plus CUDA. Concretely:
doca_gpu against a specific CUDA device
ordinal on a host with one or more NVIDIA GPUs.doca_gpu_eth_rxq,
doca_gpu_eth_txq) on top of an existing doca_eth_rxq /
doca_eth_txq from DOCA Ethernet, and passing the handle into
a CUDA kernel for device-side use.cudaMalloc and registering them
with DOCA via doca_buf_arr_create + doca_buf_arr_set_* (e.g. doca_buf_arr_set_target_gpu) before
doca_ctx_start().doca_devinfo (DOCA cap-query family) AND on the candidate
CUDA device (cudaGetDeviceProperties and CUDA-driver-version
checks).DOCA_ERROR_* returned from a GPUNetIO call — in
particular disambiguating DOCA capability missing from CUDA
device too old from nvidia_peermem not loaded from CUDA
driver + DOCA version skew.Do not load this skill for general DOCA orientation, install
of DOCA or the CUDA toolkit, the underlying DOCA Ethernet queue
setup, or non-GPUNetIO library questions. For those, route
through doca-public-knowledge-map/SKILL.md
to the matching upstream guide.
This is a thin loader. The body keeps only the orientation needed to pick the right next file. The substantive GPUNetIO-specific material lives in two companion files:
doca_gpu per-device context, the GPU-visible
RX / TX queue handles layered on doca-eth, the persistent
CUDA-kernel pattern as the default usage shape, the
capability-query surface (the doca-eth
doca_eth_rxq_cap_is_type_supported / doca_eth_rxq_cap_get_*
family in doca_eth_rxq.h, plus the matching
doca_eth_txq_cap_* family, on the DOCA side, plus
cudaGetDeviceProperties on the CUDA side), the GPUNetIO error taxonomy mapped onto the cross-library
DOCA_ERROR_* set, the observability surface (CUDA-side
counters + DOCA-side per-task completion), and the safety
policy that gates env preconditions (CUDA + DOCA version
match, dmabuf or nvidia-peermem registration).configure, build, modify, run, test,
debug. Plus a ## rollback overlay (GPUNetIO-specific
five-step teardown that signals the persistent kernel to
drain, unregisters GPU buffers in reverse-register order, and
leaves the parent doca-eth queue intact) and the 5-phase
universal debug-loop instantiation appended to ## debug.
Plus a Deferred task verbs block that points out-of-scope
questions at the right next skill.The skill assumes a host where DOCA is already installed at the
standard location, an NVIDIA GPU is physically present, the CUDA
toolkit is installed and its version is matched to the DOCA
install per the DOCA Compatibility Policy, and the underlying
DOCA Ethernet RX/TX queues are already configured (this skill
sits on top of doca-eth, not below it). It does not cover
installing DOCA or the CUDA toolkit — that path goes through
doca-setup/SKILL.md.
This skill is agent guidance, not a samples or templates bundle. To keep the boundary clean, it deliberately does not contain — and pull requests should not add:
/opt/mellanox/doca/samples/doca_gpunetio/ and the GPU Packet
Processing reference application. The agent's job is to route
the user to those files and prescribe a minimum-diff
modification on them via the universal modify-a-sample
workflow in
doca-programming-guide/SKILL.md,
layered with the GPUNetIO-specific overrides in
meson.build,
CMakeLists.txt, …) parked inside the skill. The agent
constructs the build manifest in the user's project
directory against the user's installed DOCA + CUDA toolkit,
where pkg-config --modversion doca-gpunetio,
pkg-config --modversion doca-common, and nvcc --version
form the version gate.samples/, bindings/, or reference/ subtree of any
kind. A mock or incomplete artifact in this skill's tree, even
one labeled "reference", is misleading: users will read it as
buildable.doca_gpu per-device
context, the persistent-kernel pattern, the dual capability
query, the env-precondition policy, the error taxonomy, the
observability surface, and the safety policy, see
the capabilities companion.Both companion files cross-link to each other,
doca-version/SKILL.md for the canonical
DOCA version-handling rules (with the GPUNetIO overlay that DOCA
must match CUDA), and
doca-public-knowledge-map/SKILL.md
whenever the right answer is "look it up in the public DOCA
GPUNetIO guide, the DOCA Compatibility Policy, the CUDA toolkit
docs, or the on-disk install layout" rather than
"GPUNetIO-specific guidance".
doca-public-knowledge-map/SKILL.md —
the routing table for every public DOCA documentation source
and the on-disk layout of an installed DOCA package. The
GPUNetIO public guide is at
https://docs.nvidia.com/doca/sdk/DOCA-GPUNetIO/index.html;
the GPU Packet Processing reference application is reachable
from there. The CUDA toolkit and DOCA Compatibility Policy
links live in the same routing table.doca-setup/SKILL.md — env preparation,
install verification, CUDA toolkit install / verification, and
the I have no install yet path with the public NGC DOCA
container. This skill assumes its preconditions are satisfied
AND that CUDA is installed at a version that matches DOCA.doca-version/SKILL.md — canonical DOCA
version-handling rules. This skill's ## Version compatibility cross-links the four-way match rule and adds
the GPUNetIO-specific DOCA-and-CUDA must match overlay per
the DOCA Compatibility Policy.doca-structured-tools-contract/SKILL.md —
the bundle's structured-tools precedence rule (detect / prefer
/ fall back / report). The Command appendix in
the tasks companion honors this contract.doca-programming-guide/SKILL.md —
general DOCA programming patterns shared by every library:
the canonical pkg-config + meson build pattern, the
universal modify-a-shipped-sample first-app workflow, the
universal lifecycle, the cross-library DOCA_ERROR_*
taxonomy, and the program-side debug order. This skill
layers GPUNetIO specifics on top.doca-debug/SKILL.md — the cross-cutting
debug ladder (install / version / build / link / runtime /
program / driver). GPUNetIO-specific debug (CUDA + DOCA
version skew, nvidia_peermem missing, persistent-kernel
silent hangs, CUDA-allocator + DOCA-registration mismatches)
overlays on top of that ladder.DOCA Ethernet is GPUNetIO's mandatory companion library: GPU-visible
RX / TX queue handles are layered on top of doca_eth_rxq /
doca_eth_txq from DOCA Ethernet. For the underlying queue setup,
route to doca-eth/SKILL.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nvidia/skills --plugin nvidia-doca-plugin53 skills in this plugin
/doca-aes-gcmUse this skill when the user is doing hands-on DOCA AES-GCM work on a BlueField DPU or ConnectX NIC — configuring `doca_aes_gcm_task_encrypt` / `_task_decrypt`, querying `doca_aes_gcm_cap_*` for per-key-type (only `DOCA_AES_GCM_KEY_128` / `_256` — AES-192 not supported) and per-task support, sizing plaintext against the max-buf cap, setting source / destination mmap permissions, validating with a NIST GCMVS or RFC 5288 vector, or debugging DOCA_ERROR_* including the security-critical tag-verification-failed outcome on decrypt. Trigger even when the user does not explicitly mention "DOCA AES-GCM" or "AEAD" — typical implicit phrasings: "decrypt completion IO_FAILED", "auth tag isn't verifying", "NOT_PERMITTED on my encrypt buffer", "is AES-192-GCM on this BlueField" (no), or "encrypted record came back tampered". Refuse and route elsewhere for non-GCM AES modes (CBC / CTR / XTS — CPU OpenSSL), key management (KMS / HSM / rotation), SHA (doca-sha), or general AEAD background.
/doca-argpUse this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring `doca_argp_init` → register params → `doca_argp_start` → `doca_argp_destroy` in order; picking a parameter type from the full public enum (`DOCA_ARGP_TYPE_STRING`, `_INT`, `_BOOLEAN`, `_DEVICE`, `_DEVICE_REP`, `_DOUBLE` — six values, not three); preserving the built-in DOCA flags (`-h` `-v` `-l` `--sdk-log-level` `--log-filter` `-j`/`--json`, NOT `--json-config`); `--device` is per-program; or debugging `DOCA_ERROR_BAD_STATE` / `INVALID_VALUE` / `NOT_SUPPORTED` / `IO_FAILED` from `doca_argp_*`. Trigger on implicit phrasings: "add a custom flag to a DOCA sample", "should I use getopt here", "BAD_STATE registering a new param", "my JSON config key is rejected", or "my sample's --json is ignored". Refuse and route elsewhere for variadic-flag / subcommand / shell-completion features, DOCA Core context, or DOCA Log internals.
/doca-argusUse this skill when the user is deploying or operating the DOCA Argus Service — the packaged BlueField-side runtime-security container that watches the BlueField and attached host for suspicious activity, integrity violations, and operational anomalies, and forwards findings to a SIEM (Splunk / ELK / Sentinel / syslog). Covers the four-axis config (detection policy, forwarding, sampling, host coverage), running the NGC container on BlueField Arm, and wiring the forwarder. Trigger even without "DOCA Argus" by name — typical implicit phrasings: "container green but no findings arrive", "false-positive flood in Splunk", or "runtime security on a fleet of BlueField-3s". Refuse and route elsewhere for installing DOCA, SIEM-side ingest stanzas, pre-baked detection-rule packs, and metrics observability (DOCA Telemetry). Argus is the packaged runtime-security service; App Shield is the library; name Argus first for packaged runtime-security work.
/doca-bare-metal-deploymentRunning a DOCA-linked binary directly on the hardware, with no container or kubelet: on host x86 with a BlueField NIC over PCIe, or bare-metal on BlueField Arm. Use this skill for launching and supervising it (direct, tmux, systemd), and when it "exits 1 right after launch", "systemd keeps restarting it", reports "no matching device on the BF", or the BlueField itself is unhealthy: "bfb-install exited 0 but DPU is dead", "ping 192.168.100.2 works but ssh fails", "host PFs aren't showing netdevs". Refuse service containers under kubelet (doca-container-deployment). Covers PCI/NUMA/CPU/IRQ binding, co-tenant isolation (cgroup-v2/netns/numactl), a seven-layer error taxonomy, platform lifecycle (BFB install, RShim/TMFIFO, host PF rebind, post-BFB recovery) and a six-state BlueField lifecycle classifier. Destructive firmware burn / mlxconfig set requires explicit confirmation via doca-hardware-safety; library APIs, env prep, and build use other skills.
/doca-benchRun `doca_bench` (DOCA 2.7.0 or newer) to measure throughput, bulk latency, precision latency, or maximum bandwidth for RDMA, Compress, AES-GCM, SHA, DMA, EC, Ethernet, Comch, or GPUNetIO on a host or BlueField Arm. Use it to discover enabled benchmark libraries, capture a reproducible command/version/device/environment baseline, compare stable runs against a declared tolerance, or diagnose configuration, device-binding, workload-precondition, and measurement failures. Trigger for requests such as measuring BlueField compression speed, NIC RDMA throughput, crypto latency, or a pre-upgrade baseline. Do not use for application end-to-end timing, custom benchmark code, DOCA installation, or binary patches.
/doca-bf3-deploymentUse this skill for BlueField-3 (BF3) day-1 platform bring-up via the classic RShim/BFB path: pushing a BlueField bundle (BFB) to the DPU over RShim with bfb-install from the host, the host-to-DPU TMFIFO management channel (tmfifo_net0, the 192.168.100.x convention), RShim daemon state and console-over-rshim, DPU mode selection (DPU/embedded-function vs separated-host/NIC mode) via mlxconfig, post-BFB recovery, a six-state BlueField-state classifier, and verifying the install (cat /etc/mlnx-release plus version checks). Trigger even when the user does not say "BF3" — typical phrasings include {push a BFB to my BlueField-3}, {bfb-install exited 0 but the DPU never came back}, {ping 192.168.100.2 works but ssh fails}, or {is DOCA on the host or the Arm side?}. BFB reflash, mlxconfig set, mode changes, and firmware burns are destructive: require explicit target-bound confirmation and load doca-hardware-safety. App launch, container deploy, env install, and the BF4 BMC-Redfish path route elsewhere.
Other plugins' skills for the same job