/nvidia-doca-plugin:doca-rmaxfrom NVIDIA DOCA
Troubleshoots DOCA Rivermax receive streams for timing-precise media over IP on BlueField DPUs. Covers doca_rmax_in_stream sessions, SDK/license checks, capability queries, and error handling.
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.
pkg-config --modversion doca-rmax and check it against
doca_caps --version (the doca-version four-way match) before claiming
any feature is available; the Rivermax SDK version is a second axis on its own schedule; then the device capability query on the
active doca_devinfo is the runtime authority.doca-setup/SKILL.md, the
Rivermax SDK + license to the public DOCA Rivermax guide via
doca-public-knowledge-map/SKILL.md. Come back here once both
are present.doca_rmax_get_*_supported queries before changing stream
setup.pkg-config --modversion doca-rmax checked against
doca_caps --version, and the Rivermax SDK version, which ships on its
own schedule. The device-side doca_rmax capability queries on the active
doca_devinfo decide what the stream can use.Follow Loading order below. Open the tasks companion for configure / stream / debug. Open the capabilities companion for Rivermax preconditions. Do not open every companion file.
Where to start: This skill assumes DOCA is already installed on
the target BlueField DPU (DOCA Rivermax apps run only on the target
DPU), AND that the Rivermax libraries (doca-sdk-rmax /
libdoca-sdk-rmax-dev from the DOCA repo) are installed with a valid
Rivermax license present on the DPU. The agent's FIRST
action on any Rivermax question is to confirm both — without
the Rivermax libraries + license, doca-rmax cannot function regardless
of how clean the DOCA-side code is, and this is the #1 first-app
confusion (the Rivermax license, and the driver per the Rivermax SDK
page, are obtained separately from DOCA). 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 DOCA Rivermax express on this version + this Rivermax
install. If the user has not installed DOCA yet, route to
doca-setup/SKILL.md first; for the Rivermax
SDK + license install itself, route to the public DOCA Rivermax
guide (slug DOCA-Rivermax) via
doca-public-knowledge-map/SKILL.md.
If the user is asking "how do I get packets to land on my
Rivermax input stream at all", the answer is layered:
doca-rmax is the Rivermax integration surface,
doca-eth/SKILL.md is the queue surface that
carries the packets, and doca-flow/SKILL.md
is the steering surface that directs them.
The CLASSES of DOCA Rivermax 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-rmax on this host?" — worked
example: "the public docs mention doca-rmax; is it
usable without doing anything else?". Answered by the
Rivermax-SDK + license precondition rule in
doca-public-knowledge-map/SKILL.md
and refuses to recommend a fallback to doca-eth alone that
would silently lose the timing properties.doca_rmax_get_*_supported query do I have to call before
picking a PTP clock or hardware packet-placement order?" — worked
example: "can this device + this Rivermax install use
ST 2110-20 sequence-number placement?". Answered by the
capability-query rule in
doca-flow/SKILL.md, the queue side to
doca-eth/SKILL.md, and the license side
back to the Rivermax-side precondition.doca-version/SKILL.md.DOCA_ERROR_* from a Rivermax call mean and
which layer caused it?" — worked example:
"DOCA_ERROR_NOT_SUPPORTED from doca_rmax_init()".
Answered by the Rivermax overlay on the
cross-library taxonomy in
doca-debug/SKILL.md, and which preserves
the installed header's call-specific mapping: init-time
_NOT_SUPPORTED routes first to Rivermax SDK / license checks;
later errors are interpreted from the exact failing call rather
than generalized into a license diagnosis.This skill serves external developers building applications
that consume the DOCA Rivermax integration — i.e., users whose
code calls doca_rmax_* (directly in C/C++, or through
FFI/bindings from another language) to drive timing-precise
media-over-IP streams (SMPTE ST 2110, real-time market data,
high-throughput scientific instrument streams) on top of a
separately-installed NVIDIA Rivermax SDK on a BlueField or
ConnectX host. It is not for NVIDIA developers contributing to
DOCA Rivermax itself, and it is not for users who want
best-effort packet I/O — for that, route to
doca-eth/SKILL.md directly.
Language scope. DOCA Rivermax ships as a C library with
pkg-config module name doca-rmax. The shipped samples
live under /opt/mellanox/doca/samples/doca_rmax/ and are
written in C. C and C++ consumers are the canonical case; the
worked examples in the tasks companion assume that path. Other-language
consumers (Rust, Go, Python, …) consume the same *.so through
FFI or language-specific bindings; the skill's contribution in
that case is to keep the precondition rule (Rivermax SDK +
license), per-stream lifecycle, capability-discovery,
permission, scheduling-discipline, and error-taxonomy guidance
language-neutral, and to route the agent to the public C ABI as
the authoritative surface that any wrapper will eventually call.
Load this skill when the user is doing hands-on DOCA Rivermax work, in any language. Concretely:
doca-rmax cannot be
used; pick a different library", not "let's try and see what
fails".doca_rmax_init() / doca_rmax_release(), then creating a
doca_rmax_in_stream (receive) context with
doca_rmax_in_stream_create() on a doca_dev opened against a
physical port, a representor, or an SF, and converting it via
doca_rmax_in_stream_as_ctx() before doca_ctx_start(). The
public DOCA Rivermax API is receive-only — there is no
transmit/output stream object.doca_rmax_get_*_supported query.doca_rmax_in_stream_set_* and querying device + Rivermax
capability via the doca_rmax_get_*_supported family before
assuming PTP-clock or hardware packet-placement-order support.doca-eth queue surface
that carries the packets and the doca-flow rules that
steer them — Rivermax does not program steering itself.doca-public-knowledge-map/SKILL.md).DOCA_ERROR_* returned from a Rivermax call
(lifecycle vs. license / permission vs. capability vs.
driver-below) where the cause may live in the DOCA-side
wrapper, the underlying Rivermax stack, or the licensing
layer.Do not load this skill for general DOCA orientation, for
installing DOCA itself, for installing the Rivermax SDK or
managing the Rivermax license file (those live in the public
Rivermax SDK guide reachable through
doca-public-knowledge-map/SKILL.md),
for best-effort packet I/O without timing requirements (use
doca-eth/SKILL.md directly), or for pure
host-side data processing without networking. For DOCA
documentation orientation, use
doca-public-knowledge-map/SKILL.md.
This is a thin loader. The body keeps only the orientation needed to pick the right next file. The substantive Rivermax-specific material lives in two companion files:
doca_rmax_in_stream object model, the capability-query surface
(doca_rmax_get_*_supported), the Rivermax error taxonomy
(mapped onto the cross-library DOCA_ERROR_* set, with
Rivermax-specific causes called out per row), the
observability surface (per-stream progress engine events,
capability snapshots, Rivermax-side license + driver state),
and the safety policy that gates the Rivermax-SDK-present /
license-present / device-access / scheduling-discipline
preconditions.configure, build, modify, run,
test, debug. Plus a Deferred task verbs block that
points out-of-scope questions (installing Rivermax,
managing the license, programming steering, programming the
underlying queue) at the right next skill, and a Command appendix of the recurring commands the agent reaches for.The skill assumes a host or BlueField where DOCA is already
installed at the standard location, the NVIDIA Rivermax SDK is
installed at its expected location with a valid license, and
the user has the privileges their public install profile
expects (typically sudo or mlnx-group membership to open a
doca_dev against a port). It does not cover installing DOCA —
that path goes through
doca-setup/SKILL.md. It does not cover
installing Rivermax or its license — that path goes through the
public Rivermax SDK guide reachable through
doca-public-knowledge-map/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_rmax/<name>/.
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 Rivermax-specific overrides in
meson.build,
CMakeLists.txt, Cargo.toml, …) parked inside the skill.
The agent constructs the build manifest in the user's
project directory against the user's installed DOCA, where
pkg-config --modversion doca-rmax is the source of
truth.doca_rmax_get_*_supported for capability discovery,
receive-only doca_rmax_in_stream session objects driven by the
standard DOCA Core context lifecycle). Exact Rivermax
symbol names are install-bound and Rivermax-SDK-version-
bound; the agent should read them from the installed headers
at $(pkg-config --variable=includedir doca-common) and from the
public DOCA Rivermax guide rather than rely on agent memory.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.Both companion files cross-link to each other,
doca-version/SKILL.md for the canonical
DOCA version-handling rules (Rivermax adds a Rivermax-SDK-
version axis on top),
doca-eth/SKILL.md for the queue surface
that carries the packets,
doca-flow/SKILL.md for the steering side
that decides which packets land on which queue, and
doca-public-knowledge-map/SKILL.md
whenever the right answer is "look it up in the public
Rivermax SDK guide or the installed package layout" rather
than "Rivermax-integration-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
Rivermax URL slug is DOCA-Rivermax; the public Rivermax SDK
guide (separate product) is reachable from the same routing
table when the user asks how to install Rivermax or its
license.doca-setup/SKILL.md — env preparation,
install verification, port-state checks (devlink dev show,
ip link), permission and group-membership requirements for
opening a doca_dev. This skill assumes its preconditions
are satisfied; the Rivermax-SDK + license preconditions are
layered on top.doca-version/SKILL.md — canonical
DOCA version-handling rules. This skill's ## Version compatibility cross-links the four-way match rule and adds
the Rivermax-specific overlay (Rivermax SDK version is a
second axis; the capability set on this host is the
intersection of DOCA-side cap-query results and
Rivermax-side capabilities).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 Rivermax specifics on top.doca-eth/SKILL.md — the queue surface
that carries the packets a Rivermax stream produces or
consumes. DOCA Rivermax does not program the underlying
queue itself; it integrates with the queue programmed via
doca-eth. The two skills' lifecycles are independent.doca-flow/SKILL.md — the steering
surface that decides which packets land on which queue.
DOCA Rivermax does not program steering itself; an empty
Rivermax input stream almost always means a missing or wrong
Flow rule (or a missing Rivermax license), not a Rivermax
bug.doca-debug/SKILL.md — the
cross-cutting debug ladder (install / version / build /
link / runtime / program / driver). Rivermax-specific debug
(license precondition gaps, stream-type / packet-rate
capability mismatches, scheduling-discipline jitter
symptoms) overlays on top of that ladder.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.
Other plugins' skills for the same job