doca-rmax
DOCA Rivermax (doca_rmax) receive streams for timing-precise media over IP (SMPTE ST 2110 video / audio, market data, scientific feeds) on a target BlueField DPU (DOCA Rivermax apps run only there), once the Rivermax libraries and license are installed; getting them is doca-setup / doca-public-knowledge-map territory. Trigger on "ST 2110 receive isn't getting frames", "sub-microsecond jitter on my media receiver", "NOT_SUPPORTED from doca_rmax_init", "no recv events after stream start", or "license check failing on a media receiver", even without naming Rivermax. Covers doca_rmax_in_stream sessions, the SDK + license precondition check, doca_rmax_get_*_supported capability queries, pairing with doca-eth queues and doca-flow steering, and DOCA_ERROR_* from Rivermax calls. Refuse and route elsewhere for programming the underlying queue (doca-eth), steering rules (doca-flow), PTP / clock sync (doca-firefly), or best-effort packet I/O.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install skills-doca-rmaxManual setup by platform
Claude Code
~/.claude/skills/skills-doca-rmax/SKILL.md
Instructions
DOCA Rivermax
Examples
- Any configure, build, run or test answer starts with the version.
Runpkg-config --modversion doca-rmaxand 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
activedoca_devinfois the runtime authority. - "ST 2110 receive isn't getting frames." — this is in
scope after Rivermax SDK + license are already present. - "How do I obtain / install the Rivermax SDK and its license?" —
out of scope for this skill. Say so, give no install or licensing
steps, and route: DOCA packages todoca-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. - "NOT_SUPPORTED from doca_rmax_init." — run the
doca_rmax_get_*_supportedqueries before changing stream
setup. - "Which version and capabilities apply to my Rivermax stream?" Two
version axes:pkg-config --modversion doca-rmaxchecked against
doca_caps --version, and the Rivermax SDK version, which ships on its
own schedule. The device-sidedoca_rmaxcapability queries on the active
doca_devinfodecide what the stream can use.
Instructions
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.
Example questions this skill answers well
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.
- "Can I even use
doca-rmaxon this host?" — worked
example: "the public docs mentiondoca-rmax; is it
usable without doing anything else?". Answered by the
Rivermax-SDK + license precondition rule inSafety policy
- the env-prep checklist in
configure step 1, which
routes the install-side question to the public Rivermax guide
via
doca-public-knowledge-map/SKILL.md
and refuses to recommend a fallback todoca-ethalone that
would silently lose the timing properties. - "How do I set up a SMPTE ST 2110 video receive stream?" —
worked example: "line up an inbound Rivermax stream on a
representor of a BlueField port for first-run testing".
Answered by the per-stream object lifecycle inconfigure +
Capabilities and modes
input stream capability table. - "Which
doca_rmax_get_*_supportedquery 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 inCapabilities and modes
- step 3 in
configure.
- "My stream is set up but no packets arrive — why?" —
worked example: "the Rivermax stream object started cleanly
but no recv events fire". Answered by the precondition matrix
inSafety policy
- the env-prep checklist in
configure step 1, which
routes the steering side to
doca-flow/SKILL.md, the queue side to
doca-eth/SKILL.md, and the license side
back to the Rivermax-side precondition. - "Is this Rivermax integration capability available on my
device + my installed DOCA + my Rivermax SDK?" — worked
example: "does this device + this Rivermax version advertise
the PTP clock or placement mode I need". Answered by the capability-query
rule inCapabilities and modes
- the version-and-device overlay in
Version compatibility,
which adds the Rivermax-side version is a second axis rule
on top of the canonical DOCA version-handling chain in
doca-version/SKILL.md. - "What does this
DOCA_ERROR_*from a Rivermax call mean and
which layer caused it?" — worked example:
"DOCA_ERROR_NOT_SUPPORTEDfromdoca_rmax_init()".
Answered by the Rivermax overlay on the
cross-library taxonomy inError taxonomy
- the layered ladder in
debug that escalates to
doca-debug/SKILL.md, and which preserves
the installed header's call-specific mapping: init-time
_NOT_SUPPORTEDroutes first to Rivermax SDK / license checks;
later errors are interpreted from the exact failing call rather
than generalized into a license diagnosis.
Audience
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.
When to load this skill
Load this skill when the user is doing hands-on DOCA Rivermax
work, in any language. Concretely:
- Confirming that the NVIDIA Rivermax SDK and a valid Rivermax
license are present on the host before any DOCA-side code is
written — this is a mandatory precondition, not an error
path; without it the answer is "doca-rmaxcannot be
used; pick a different library", not "let's try and see what
fails". - Initializing the global DOCA Rivermax engine with
doca_rmax_init()/doca_rmax_release(), then creating a
doca_rmax_in_stream(receive) context with
doca_rmax_in_stream_create()on adoca_devopened against a
physical port, a representor, or an SF, and converting it via
doca_rmax_in_stream_as_ctx()beforedoca_ctx_start(). The
public DOCA Rivermax API is receive-only — there is no
transmit/output stream object. - Configuring a Rivermax input stream for SMPTE ST 2110 audio +
video over IP, real-time market data feeds, or a scientific
instrument stream — with awareness that PTP-clock and
hardware packet-placement-order support are device- and
Rivermax-conditional and gate on the matching
doca_rmax_get_*_supportedquery. - Reading or setting Rivermax stream properties via
doca_rmax_in_stream_set_*and querying device + Rivermax
capability via thedoca_rmax_get_*_supportedfamily before
assuming PTP-clock or hardware packet-placement-order support. - Pairing the Rivermax stream with the
doca-ethqueue surface
that carries the packets and thedoca-flowrules that
steer them — Rivermax does not program steering itself. - Designing the real-time scheduling discipline for the
streaming threads (the underlying Rivermax stack expects
real-time priority for sub-microsecond jitter; the canonical
scheduling guidance lives in the Rivermax SDK docs reachable
through
doca-public-knowledge-map/SKILL.md). - Debugging a
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. - Designing or extending non-C bindings (Rust, Go, Python, …)
that wrap the DOCA Rivermax C ABI — for the precondition
rule, lifecycle, capability, permission, and scheduling rules
the wrapper must honor.
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.
What this skill provides
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:
- the capabilities companion — what DOCA Rivermax can express on this
version and this Rivermax SDK install: the
Rivermax-as-hard-dependency rule, the receive-only
doca_rmax_in_streamobject model, the capability-query surface
(doca_rmax_get_*_supported), the Rivermax error taxonomy
(mapped onto the cross-libraryDOCA_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. - the tasks companion — step-by-step workflows for the six in-scope
Rivermax verbs:configure,build,modify,run,
test,debug. Plus aDeferred task verbsblock that
points out-of-scope questions (installing Rivermax,
managing the license, programming steering, programming the
underlying queue) at the right next skill, and aCommand appendixof 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.
What this skill deliberately does not ship
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:
- Pre-written DOCA Rivermax application source code, in any
language. The verified Rivermax source code is the shipped
C samples at/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 inmodify.
- Standalone build manifests (
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-rmaxis the source of
truth. - Quoted Rivermax symbol names beyond the public family
pattern (doca_rmax_get_*_supportedfor capability discovery,
receive-onlydoca_rmax_in_streamsession 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. - A
samples/,bindings/, orreference/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.
Loading order
- Read this skill first to confirm the user's question is
in scope and that the Rivermax-SDK + license
precondition has been considered. - For the Rivermax capability matrix, the receive-only input
stream model, capability-query rules, error taxonomy,
observability, and safety policy, see
the capabilities companion. - For step-by-step workflows — configure, build, modify,
run, test, debug — see the tasks companion.
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".
Related skills
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 isDOCA-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 adoca_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 compatibilitycross-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 canonicalpkg-config+ meson build pattern, the
universal modify-a-shipped-sample first-app workflow, the
universal lifecycle, the cross-libraryDOCA_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.
Security
Reviews (0)
Related skills
Browse all →More from skills
View source →More Build skills
Browse category →Frequently asked questions about doca-rmax
What does the doca-rmax skill do?
DOCA Rivermax (doca_rmax) receive streams for timing-precise media over IP (SMPTE ST 2110 video / audio, market data, scientific feeds) on a target BlueField DPU (DOCA Rivermax apps run only there), once the Rivermax libraries and license are installed; getting them is doca-setup / doca-public-knowledge-map territory. Trigger on "ST 2110 receive isn't getting frames", "sub-microsecond jitter on my media receiver", "NOT_SUPPORTED from doca_rmax_init", "no recv events after stream start", or "license check failing on a media receiver", even without naming Rivermax. Covers doca_rmax_in_stream sessions, the SDK + license precondition check, doca_rmax_get_*_supported capability queries, pairing with doca-eth queues and doca-flow steering, and DOCA_ERROR_* from Rivermax calls. Refuse and route elsewhere for programming the underlying queue (doca-eth), steering rules (doca-flow), PTP / clock sync (doca-firefly), or best-effort packet I/O. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the doca-rmax skill?
Run `npx @skills-hub-ai/cli install skills-doca-rmax` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/skills-doca-rmax/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does doca-rmax work with?
doca-rmax runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the doca-rmax skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use doca-rmax after installing it?
In Claude Code, type `/skills-doca-rmax` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the doca-rmax skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.