DOCA PCC
Where to start: This skill assumes DOCA is already installed,
the user's BlueField has a DPA processor that the host can see
through DOCA, the BlueField firmware has the custom-PCC slot
enabled, and the user is doing hands-on custom PCC work from
the host side — i.e. using doca-pcc to load a DPA-side
congestion control algorithm onto the BlueField, attach it to a
port handling RDMA / RoCE traffic, and parameterize it from the
host. Open TASKS.md if the user wants to do
something (configure / build / modify / run / test / debug);
open CAPABILITIES.md when the question is
what can the host-side PCC API express on this version + this
BlueField generation + this firmware. If the user has not
installed DOCA yet, route to
doca-setup first; if the user is
asking how to write the DPA-side congestion-control algorithm
itself (the code that runs on the DPA processor, compiled by
dpacc), that is a different scope — route via
doca-public-knowledge-map
to the public DOCA PCC programming guide and to
doca-dpa for the host-side DPA
lifecycle this skill builds on. If the user only wants to
inspect PCC counters at runtime without writing a custom
algorithm, that is the pcc_counters CLI tool — route via
doca-public-knowledge-map ## DOCA tools;
this skill is for custom algorithms only.
Example questions this skill answers well
The CLASSES of PCC 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.
- "How do I deploy my own custom congestion control algorithm
onto a BlueField port carrying RDMA / RoCE traffic?" —
worked example: "load a small DPA-side PCC algorithm and
attach it to the BlueField port that handles my RoCE traffic".
Answered by the two-side-program model + the host-side
load-and-attach workflow in
CAPABILITIES.md ## Capabilities and modes
- the bring-up steps in
TASKS.md ## configure.
- "Does this BlueField + firmware actually allow a custom PCC
algorithm, and which PCC features does my DOCA install
expose?" — worked example: "my host has a BlueField and the
default factory PCC works; can I drop in a custom algorithm
instead?". Answered by the triple-axis precondition rule
(BlueField generation must carry a DPA, firmware must have the
custom-PCC slot enabled,
doca_pcc_cap_* against the active
doca_devinfo must agree) in
CAPABILITIES.md ## Capabilities and modes
- the env-precondition checklist in
TASKS.md ## configure step 1.
- "Why does my custom PCC fail with
DOCA_ERROR_NOT_PERMITTED
even though I have doca_dev access?" — worked example:
"the BlueField firmware in this host has the custom-PCC slot
disabled". Answered by the permission matrix in
CAPABILITIES.md ## Safety policy
- the firmware-side env fix in
TASKS.md ## configure step 1.
- "Is this
doca-pcc library the right tool for what I want,
or do I want the default firmware PCC or the
pcc_counters CLI?" — worked example: "I just want to
read PCC counters without touching the algorithm". Answered
by the path-selection rule in
CAPABILITIES.md ## Capabilities and modes
- "Is the host-side PCC API I'm reading about on my installed
DOCA?" — worked example: "is the host-side load helper I
see in the docs available against the DOCA + DPACC versions on
this host?". Answered by the version-compatibility overlay in
CAPABILITIES.md ## Version compatibility
which cross-links the canonical detection chain in
doca-version and adds the
PCC-specific DOCA must match DPACC overlay inherited from
doca-dpa.
- "What does this
DOCA_ERROR_* from a doca_pcc_* call mean
and which layer caused it?" — worked example:
"DOCA_ERROR_DRIVER on the host-side algorithm-load call —
is it DOCA, the firmware-side custom-PCC slot, or the DPACC-
produced image?". Answered by the PCC overlay on the
cross-library taxonomy in
CAPABILITIES.md ## Error taxonomy
- the layered ladder in
TASKS.md ## debug that escalates to
doca-debug.
Audience
This skill serves external developers building applications
that consume the DOCA PCC library from the host side — i.e.,
users whose code calls doca_pcc_* from host C / C++ to stand
up the per-PCC-instance context, load a DPA-side PCC algorithm
image that dpacc produced from their DPA-side source, attach
it to the BlueField port that carries the RDMA / RoCE traffic
the algorithm is meant to control, parameterize the algorithm,
start the context, and observe runtime reports back from the
algorithm. It is not for NVIDIA developers contributing to
DOCA PCC itself, nor is it the place to learn how to write
the DPA-side congestion-control algorithm itself (that path
goes through the public DOCA PCC programming guide and the
companion DOCA DPA / DPACC guides via
doca-public-knowledge-map).
Language scope. DOCA PCC ships as a host-side C library
with pkg-config module name doca-pcc. The host-side API is
C; the DPA-side congestion-control algorithm is a separate
translation unit written in the language the DPACC compiler
accepts and compiled by dpacc into a binary that the host
packages into the executable as the PCC algorithm image. The
shipped samples under /opt/mellanox/doca/samples/doca_pcc/
are written in C plus DPA-side source (NVIDIA's choice).
Other-language consumers are limited in practice — the
DPA-side algorithm has no FFI escape hatch because it must be
a translation unit dpacc accepts — but a Rust / Go / Python
host-side wrapper that drives doca_pcc_* setup and loads a
PCC algorithm image built separately is still useful, and the
skill keeps the lifecycle, capability-discovery,
env-precondition, and error-taxonomy guidance language-neutral.
When to load this skill
Load this skill when the user is doing hands-on DOCA PCC work
from the host side for a custom congestion control
algorithm, in any host language plus a DPA-side translation
unit built by dpacc. Concretely:
- Initializing a
doca_pcc against a doca_dev that maps to
the BlueField port carrying the RDMA / RoCE traffic to be
controlled.
- Loading a PCC algorithm image (
doca_pcc_app) that dpacc
produced from the user's DPA-side congestion-control algorithm
source, into the doca_pcc context.
- Parameterizing the loaded algorithm with the host-side knobs
the algorithm exposes, and starting the
doca_pcc Core
context so the algorithm begins affecting RDMA / RoCE
traffic on the attached port.
- Checking which PCC features are supported on the active
doca_devinfo via the doca_pcc_cap_* family — BlueField
generations and firmware revisions differ in whether they
permit a custom PCC algorithm.
- Debugging a
DOCA_ERROR_* returned from a doca_pcc_* call
— in particular disambiguating firmware-level custom-PCC
slot disabled from device does not support custom PCC at
all from algorithm image incompatible with this device
from standard doca_dev access denied.
- Designing host-side bindings in a non-C language that drive
a custom PCC algorithm image they built separately with
dpacc — the env-precondition and capability-discovery rules
in this skill still apply.
Do not load this skill for general DOCA orientation, install
of DOCA or the DPACC compiler, the DPA-side programming model
itself (how to write the congestion-control algorithm body that
runs on the DPA), questions about the default factory PCC
algorithm shipped in ConnectX firmware (no host-side doca-pcc
code needed — that path is firmware-only configuration), or
questions about the pcc_counters diagnostic CLI (route via
doca-public-knowledge-map ## DOCA tools).
For all of those, route through
doca-public-knowledge-map
to the matching upstream guide.
What this skill provides
This is a thin loader. The body keeps only the orientation
needed to pick the right next file. The substantive
PCC-specific material lives in two companion files:
CAPABILITIES.md — what the host-side PCC API can express on
this version + this BlueField generation + this firmware: the
per-PCC-instance doca_pcc context, the loaded doca_pcc_app
algorithm image produced by dpacc, the attach-to-port
semantics that bind the algorithm to the RDMA / RoCE traffic
it will control, the capability-query surface
(doca_pcc_cap_*), the PCC error taxonomy mapped onto the
cross-library DOCA_ERROR_* set, the observability surface
(host-side reports plus the public PCC counter tool reachable
via doca-public-knowledge-map), and the safety policy that
gates env preconditions (DPA-capable BlueField, firmware-level
custom-PCC slot enabled, matched DOCA + DPACC versions,
algorithm image and host-side expectations agree).
TASKS.md — step-by-step workflows for the six in-scope PCC
verbs: configure, build, modify, run, test,
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, a BlueField with a DPA processor is
physically present and visible to the host, the BlueField
firmware has the custom-PCC slot enabled, the DPACC compiler
is installed at a version matched to the DOCA install per the
DOCA Compatibility Policy, and the user already knows how
(at least at a sketch level) to write the DPA-side PCC
algorithm that dpacc will compile. It does not cover
installing DOCA, installing the DPACC compiler, or flipping
firmware-level configuration — those paths go through
doca-setup.
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 PCC application source code or DPA-side
algorithm source, in any language. The verified PCC source
is the shipped C + DPA-side samples at
/opt/mellanox/doca/samples/doca_pcc/. 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,
layered with the PCC-specific overrides in
TASKS.md ## modify.
- A specific congestion control algorithm. This library
loads an algorithm the user supplies; it does not define
one. The agent must refuse to invent algorithm bodies and
must route any "what algorithm should I write" question to
the public DOCA PCC programming guide and the user's own
domain expertise — that is a research question, not an API
question.
- Standalone build manifests (
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 + DPACC
compiler, where pkg-config --modversion doca-pcc and the
installed dpacc are the two sources of truth.
- A
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.
pcc_counters tool surface. That CLI is a separate
artifact (the real tool is the pcc_counters.sh script under
tools/pcc_counters/) with its own public page; routing for it lives in
doca-public-knowledge-map ## DOCA tools.
Conflating it with the doca-pcc library is the single most
common PCC first-app design error.
Loading order
- Read this
SKILL.md first to confirm the user's question is
in scope (host-side custom PCC work, not DPA-side algorithm
design and not the counter tool).
- For the PCC capability matrix, the two-side-program model,
the
doca_pcc per-instance context, the loaded doca_pcc_app
algorithm image, the attach-to-port semantics, the
triple-axis precondition rule, the env-precondition policy,
the error taxonomy, the observability surface, and the
safety policy, see CAPABILITIES.md.
- For step-by-step workflows — configure, build, modify,
run, test, debug — see TASKS.md.
Both companion files cross-link to each other,
doca-version for the canonical
DOCA version-handling rules (with the PCC overlay that DOCA
must match the DPACC compiler), and
doca-public-knowledge-map
whenever the right answer is "look it up in the public DOCA
PCC programming guide, the public DPA / DPACC guides, the
pcc_counters tool guide, or in the on-disk install
layout" rather than "PCC host-side-specific guidance".
Related skills
doca-public-knowledge-map —
the routing table for every public DOCA documentation
source and the on-disk layout of an installed DOCA package.
The PCC public guide is at
https://docs.nvidia.com/doca/sdk/DOCA-PCC/index.html; the
pcc_counters diagnostic CLI lives under the DOCA Tools
umbrella as a companion surface rather than a redefined
artifact here.
doca-dpa — the host-side DPA
control library that PCC depends on conceptually: the
custom PCC algorithm is DPA-side code, compiled by the
DPACC compiler, and the host-side doca-pcc Core lifecycle
follows the same shape as the doca-dpa Core lifecycle. The
agent loads doca-dpa alongside this skill when the user
has DPA-level questions (kernel-launch model, DPA-side
libraries) that PCC is layered on top of.
doca-rdma — the library whose
traffic the custom PCC algorithm is controlling. The custom
PCC algorithm affects RDMA / RoCE flows on the attached
BlueField port; if the user has not yet set up RDMA / RoCE
traffic on that port, there is nothing for the algorithm to
act on, and doca-rdma is the skill that brings that
traffic up.
doca-setup — env preparation,
install verification, DPACC compiler install / verification,
BlueField firmware configuration (including the custom-PCC
slot enable), and the I have no install yet path with the
public NGC DOCA container. This skill assumes its
preconditions are satisfied AND that DPACC is installed at a
version that matches DOCA AND that the firmware-level
custom-PCC slot is enabled.
doca-version — canonical
DOCA version-handling rules. This skill's ## Version compatibility cross-links the four-way match rule and adds
the PCC-specific DOCA-and-DPACC must match overlay per the
DOCA Compatibility Policy (inherited from
doca-dpa).
doca-structured-tools-contract —
the bundle's structured-tools precedence rule (detect /
prefer / fall back / report). The Command appendix in
TASKS.md honors this contract.
doca-programming-guide —
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 Core-context lifecycle, the cross-library
DOCA_ERROR_* taxonomy, and the program-side debug order.
This skill layers PCC specifics on top.
doca-debug — the cross-cutting
debug ladder (install / version / build / link / runtime /
program / driver). PCC-specific debug (custom-PCC slot not
enabled in firmware, DPACC + DOCA version skew, algorithm
image rejected as incompatible with the device, traffic on
the attached port not being affected because the algorithm
body has no effect path) overlays on top of that ladder.
The default factory PCC algorithms shipped inside ConnectX
firmware are not in scope for this skill — those work
without doca-pcc and are configured through firmware-level
knobs, not through any host-side library API. The
pcc_counters diagnostic CLI is also not in scope —
it is a separate artifact for inspecting runtime PCC
counters and lives under the public DOCA Tools umbrella.
Conflating either of those with the doca-pcc library is the
single most common PCC first-app design error.
1---2name: doca-pcc3description: Use this skill when the user is doing hands-on host-side DOCA PCC work to load a CUSTOM Programmable Congestion Control algorithm onto a BlueField DPU — creating per-port `doca_pcc` contexts, loading a `dpacc`-compiled `doca_pcc_app` onto the `doca_dev` for the RoCE-bearing port, parameterizing it, walking triple-axis capability discovery (DOCA cap-query + DPA-capable BlueField + firmware custom-PCC slot enabled), or debugging `DOCA_ERROR_*` from `doca_pcc_*`. Trigger even without explicit "DOCA PCC" phrasing — implicit forms include "loading my own congestion control onto a BF port", "DOCA_ERROR_NOT_PERMITTED on algorithm load", "DOCA_ERROR_DRIVER when I attach my custom algorithm", "my custom rate-update isn't affecting RoCE traffic", or "load succeeds but no on-wire change". Refuse and route elsewhere for DPA-side algorithm-body design, the `pcc_counters` CLI, default factory PCC in ConnectX firmware, or setting up the RDMA / RoCE traffic — those belong to other skills.4license: Apache-2.05---67# DOCA PCC89**Where to start:** This skill assumes DOCA is already installed,10the user's BlueField has a DPA processor that the host can see11through DOCA, the BlueField firmware has the custom-PCC slot12enabled, and the user is doing **hands-on custom PCC work from13the host side** — i.e. using `doca-pcc` to load a DPA-side14congestion control algorithm onto the BlueField, attach it to a15port handling RDMA / RoCE traffic, and parameterize it from the16host. Open [`TASKS.md`](TASKS.md) if the user wants to *do*17something (configure / build / modify / run / test / debug);18open [`CAPABILITIES.md`](CAPABILITIES.md) when the question is19*what can the host-side PCC API express* on this version + this20BlueField generation + this firmware. If the user has not21installed DOCA yet, route to22[`doca-setup`](../../doca-setup/SKILL.md) first; if the user is23asking how to *write* the DPA-side congestion-control algorithm24itself (the code that runs on the DPA processor, compiled by25`dpacc`), that is a different scope — route via26[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)27to the public DOCA PCC programming guide and to28[`doca-dpa`](../doca-dpa/SKILL.md) for the host-side DPA29lifecycle this skill builds on. If the user only wants to30*inspect* PCC counters at runtime without writing a custom31algorithm, that is the `pcc_counters` CLI tool — route via32[`doca-public-knowledge-map ## DOCA tools`](../../doca-public-knowledge-map/SKILL.md#doca-tools);33this skill is for *custom* algorithms only.3435## Example questions this skill answers well3637The CLASSES of PCC questions this skill is built to answer,38each with one worked example. The agent should treat the *class*39as the load-bearing piece — the worked example is a single40instance.4142- **"How do I deploy my own custom congestion control algorithm43 onto a BlueField port carrying RDMA / RoCE traffic?"** —44 worked example: *"load a small DPA-side PCC algorithm and45 attach it to the BlueField port that handles my RoCE traffic"*.46 Answered by the two-side-program model + the host-side47 load-and-attach workflow in48 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)49 + the bring-up steps in50 [`TASKS.md ## configure`](TASKS.md#configure).51- **"Does this BlueField + firmware actually allow a custom PCC52 algorithm, and which PCC features does my DOCA install53 expose?"** — worked example: *"my host has a BlueField and the54 default factory PCC works; can I drop in a custom algorithm55 instead?"*. Answered by the triple-axis precondition rule56 (BlueField generation must carry a DPA, firmware must have the57 custom-PCC slot enabled, `doca_pcc_cap_*` against the active58 `doca_devinfo` must agree) in59 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)60 + the env-precondition checklist in61 [`TASKS.md ## configure`](TASKS.md#configure) step 1.62- **"Why does my custom PCC fail with `DOCA_ERROR_NOT_PERMITTED`63 even though I have `doca_dev` access?"** — worked example:64 *"the BlueField firmware in this host has the custom-PCC slot65 disabled"*. Answered by the permission matrix in66 [`CAPABILITIES.md ## Safety policy`](CAPABILITIES.md#safety-policy)67 + the firmware-side env fix in68 [`TASKS.md ## configure`](TASKS.md#configure) step 1.69- **"Is this `doca-pcc` library the right tool for what I want,70 or do I want the default firmware PCC or the71 `pcc_counters` CLI?"** — worked example: *"I just want to72 read PCC counters without touching the algorithm"*. Answered73 by the path-selection rule in74 [`CAPABILITIES.md ## Capabilities and modes`](CAPABILITIES.md#capabilities-and-modes)75 + the deferred-topic boundaries in76 [`CAPABILITIES.md ## Deferred topic boundaries`](CAPABILITIES.md#deferred-topic-boundaries)77 which route to78 [`doca-public-knowledge-map ## DOCA tools`](../../doca-public-knowledge-map/SKILL.md#doca-tools)79 for the counter tool.80- **"Is the host-side PCC API I'm reading about on my installed81 DOCA?"** — worked example: *"is the host-side load helper I82 see in the docs available against the DOCA + DPACC versions on83 this host?"*. Answered by the version-compatibility overlay in84 [`CAPABILITIES.md ## Version compatibility`](CAPABILITIES.md#version-compatibility)85 which cross-links the canonical detection chain in86 [`doca-version`](../../doca-version/SKILL.md) and adds the87 PCC-specific *DOCA must match DPACC* overlay inherited from88 [`doca-dpa`](../doca-dpa/SKILL.md).89- **"What does this `DOCA_ERROR_*` from a `doca_pcc_*` call mean90 and which layer caused it?"** — worked example:91 *"`DOCA_ERROR_DRIVER` on the host-side algorithm-load call —92 is it DOCA, the firmware-side custom-PCC slot, or the DPACC-93 produced image?"*. Answered by the PCC overlay on the94 cross-library taxonomy in95 [`CAPABILITIES.md ## Error taxonomy`](CAPABILITIES.md#error-taxonomy)96 + the layered ladder in97 [`TASKS.md ## debug`](TASKS.md#debug) that escalates to98 [`doca-debug`](../../doca-debug/SKILL.md).99100## Audience101102This skill serves **external developers building applications103that consume the DOCA PCC library from the host side** — i.e.,104users whose code calls `doca_pcc_*` from host C / C++ to stand105up the per-PCC-instance context, load a DPA-side PCC algorithm106image that `dpacc` produced from their DPA-side source, attach107it to the BlueField port that carries the RDMA / RoCE traffic108the algorithm is meant to control, parameterize the algorithm,109start the context, and observe runtime reports back from the110algorithm. It is *not* for NVIDIA developers contributing to111DOCA PCC itself, nor is it the place to learn how to *write*112the DPA-side congestion-control algorithm itself (that path113goes through the public DOCA PCC programming guide and the114companion DOCA DPA / DPACC guides via115[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)).116117**Language scope.** DOCA PCC ships as a host-side C library118with `pkg-config` module name `doca-pcc`. The host-side API is119C; the DPA-side congestion-control algorithm is a separate120translation unit written in the language the DPACC compiler121accepts and compiled by `dpacc` into a binary that the host122packages into the executable as the PCC algorithm image. The123shipped samples under `/opt/mellanox/doca/samples/doca_pcc/`124are written in C plus DPA-side source (NVIDIA's choice).125Other-language consumers are limited in practice — the126DPA-side algorithm has no FFI escape hatch because it must be127a translation unit `dpacc` accepts — but a Rust / Go / Python128host-side wrapper that drives `doca_pcc_*` setup and loads a129PCC algorithm image built separately is still useful, and the130skill keeps the lifecycle, capability-discovery,131env-precondition, and error-taxonomy guidance language-neutral.132133## When to load this skill134135Load this skill when the user is doing hands-on DOCA PCC work136**from the host side** for a **custom** congestion control137algorithm, in any host language plus a DPA-side translation138unit built by `dpacc`. Concretely:139140- Initializing a `doca_pcc` against a `doca_dev` that maps to141 the BlueField port carrying the RDMA / RoCE traffic to be142 controlled.143- Loading a PCC algorithm image (`doca_pcc_app`) that `dpacc`144 produced from the user's DPA-side congestion-control algorithm145 source, into the `doca_pcc` context.146- Parameterizing the loaded algorithm with the host-side knobs147 the algorithm exposes, and starting the `doca_pcc` Core148 context so the algorithm begins affecting RDMA / RoCE149 traffic on the attached port.150- Checking which PCC features are supported on the active151 `doca_devinfo` via the `doca_pcc_cap_*` family — BlueField152 generations and firmware revisions differ in whether they153 permit a custom PCC algorithm.154- Debugging a `DOCA_ERROR_*` returned from a `doca_pcc_*` call155 — in particular disambiguating *firmware-level custom-PCC156 slot disabled* from *device does not support custom PCC at157 all* from *algorithm image incompatible with this device*158 from *standard `doca_dev` access denied*.159- Designing host-side bindings in a non-C language that drive160 a custom PCC algorithm image they built separately with161 `dpacc` — the env-precondition and capability-discovery rules162 in this skill still apply.163164Do **not** load this skill for general DOCA orientation, install165of DOCA or the DPACC compiler, the DPA-side programming model166itself (how to write the congestion-control algorithm body that167runs on the DPA), questions about the default factory PCC168algorithm shipped in ConnectX firmware (no host-side `doca-pcc`169code needed — that path is firmware-only configuration), or170questions about the `pcc_counters` diagnostic CLI (route via171[`doca-public-knowledge-map ## DOCA tools`](../../doca-public-knowledge-map/SKILL.md#doca-tools)).172For all of those, route through173[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)174to the matching upstream guide.175176## What this skill provides177178This is a **thin loader**. The body keeps only the orientation179needed to pick the right next file. The substantive180PCC-specific material lives in two companion files:181182- `CAPABILITIES.md` — what the host-side PCC API can express on183 this version + this BlueField generation + this firmware: the184 per-PCC-instance `doca_pcc` context, the loaded `doca_pcc_app`185 algorithm image produced by `dpacc`, the attach-to-port186 semantics that bind the algorithm to the RDMA / RoCE traffic187 it will control, the capability-query surface188 (`doca_pcc_cap_*`), the PCC error taxonomy mapped onto the189 cross-library `DOCA_ERROR_*` set, the observability surface190 (host-side reports plus the public PCC counter tool reachable191 via `doca-public-knowledge-map`), and the safety policy that192 gates env preconditions (DPA-capable BlueField, firmware-level193 custom-PCC slot enabled, matched DOCA + DPACC versions,194 algorithm image and host-side expectations agree).195- `TASKS.md` — step-by-step workflows for the six in-scope PCC196 verbs: `configure`, `build`, `modify`, `run`, `test`,197 `debug`. Plus a `Deferred task verbs` block that points198 out-of-scope questions at the right next skill.199200The skill assumes a host where DOCA is already installed at201the standard location, a BlueField with a DPA processor is202physically present and visible to the host, the BlueField203firmware has the custom-PCC slot enabled, the DPACC compiler204is installed at a version matched to the DOCA install per the205DOCA Compatibility Policy, and the user already knows how206(at least at a sketch level) to write the DPA-side PCC207algorithm that `dpacc` will compile. It does not cover208installing DOCA, installing the DPACC compiler, or flipping209firmware-level configuration — those paths go through210[`doca-setup`](../../doca-setup/SKILL.md).211212## What this skill deliberately does not ship213214This skill is **agent guidance**, not a samples or templates215bundle. To keep the boundary clean, it deliberately does not216contain — and pull requests should not add:217218- **Pre-written DOCA PCC application source code or DPA-side219 algorithm source, in any language.** The verified PCC source220 is the shipped C + DPA-side samples at221 `/opt/mellanox/doca/samples/doca_pcc/`. The agent's job is to222 route the user to those files and prescribe a minimum-diff223 modification on them via the universal modify-a-sample224 workflow in225 [`doca-programming-guide`](../../doca-programming-guide/SKILL.md),226 layered with the PCC-specific overrides in227 [`TASKS.md ## modify`](TASKS.md#modify).228- **A specific congestion control algorithm.** This library229 *loads* an algorithm the user supplies; it does *not* define230 one. The agent must refuse to invent algorithm bodies and231 must route any *"what algorithm should I write"* question to232 the public DOCA PCC programming guide and the user's own233 domain expertise — that is a research question, not an API234 question.235- **Standalone build manifests** (`meson.build`,236 `CMakeLists.txt`, …) parked inside the skill. The agent237 constructs the build manifest *in the user's project238 directory* against the user's installed DOCA + DPACC239 compiler, where `pkg-config --modversion doca-pcc` and the240 installed `dpacc` are the two sources of truth.241- **A `samples/`, `bindings/`, or `reference/` subtree** of any242 kind. A mock or incomplete artifact in this skill's tree,243 even one labeled "reference", is misleading: users will read244 it as buildable.245- **`pcc_counters` tool surface.** That CLI is a *separate246 artifact* (the real tool is the `pcc_counters.sh` script under247 `tools/pcc_counters/`) with its own public page; routing for it lives in248 [`doca-public-knowledge-map ## DOCA tools`](../../doca-public-knowledge-map/SKILL.md#doca-tools).249 Conflating it with the `doca-pcc` library is the single most250 common PCC first-app design error.251252## Loading order2532541. Read this `SKILL.md` first to confirm the user's question is255 in scope (host-side custom PCC work, not DPA-side algorithm256 design and not the counter tool).2572. **For the PCC capability matrix, the two-side-program model,258 the `doca_pcc` per-instance context, the loaded `doca_pcc_app`259 algorithm image, the attach-to-port semantics, the260 triple-axis precondition rule, the env-precondition policy,261 the error taxonomy, the observability surface, and the262 safety policy, see [CAPABILITIES.md](CAPABILITIES.md).**2633. **For step-by-step workflows — configure, build, modify,264 run, test, debug — see [TASKS.md](TASKS.md).**265266Both companion files cross-link to each other,267[`doca-version`](../../doca-version/SKILL.md) for the canonical268DOCA version-handling rules (with the PCC overlay that DOCA269must match the DPACC compiler), and270[`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md)271whenever the right answer is "look it up in the public DOCA272PCC programming guide, the public DPA / DPACC guides, the273`pcc_counters` tool guide, or in the on-disk install274layout" rather than "PCC host-side-specific guidance".275276## Related skills277278- [`doca-public-knowledge-map`](../../doca-public-knowledge-map/SKILL.md) —279 the routing table for every public DOCA documentation280 source and the on-disk layout of an installed DOCA package.281 The PCC public guide is at282 <https://docs.nvidia.com/doca/sdk/DOCA-PCC/index.html>; the283 `pcc_counters` diagnostic CLI lives under the DOCA Tools284 umbrella as a *companion surface* rather than a redefined285 artifact here.286- [`doca-dpa`](../doca-dpa/SKILL.md) — the host-side DPA287 control library that PCC depends on conceptually: the288 custom PCC algorithm *is* DPA-side code, compiled by the289 DPACC compiler, and the host-side `doca-pcc` Core lifecycle290 follows the same shape as the `doca-dpa` Core lifecycle. The291 agent loads `doca-dpa` alongside this skill when the user292 has DPA-level questions (kernel-launch model, DPA-side293 libraries) that PCC is layered on top of.294- [`doca-rdma`](../doca-rdma/SKILL.md) — the library whose295 traffic the custom PCC algorithm is controlling. The custom296 PCC algorithm affects RDMA / RoCE flows on the attached297 BlueField port; if the user has not yet set up RDMA / RoCE298 traffic on that port, there is nothing for the algorithm to299 act on, and `doca-rdma` is the skill that brings that300 traffic up.301- [`doca-setup`](../../doca-setup/SKILL.md) — env preparation,302 install verification, DPACC compiler install / verification,303 BlueField firmware configuration (including the custom-PCC304 slot enable), and the *I have no install yet* path with the305 public NGC DOCA container. This skill assumes its306 preconditions are satisfied AND that DPACC is installed at a307 version that matches DOCA AND that the firmware-level308 custom-PCC slot is enabled.309- [`doca-version`](../../doca-version/SKILL.md) — canonical310 DOCA version-handling rules. This skill's `## Version311 compatibility` cross-links the four-way match rule and adds312 the PCC-specific *DOCA-and-DPACC must match* overlay per the313 DOCA Compatibility Policy (inherited from314 [`doca-dpa`](../doca-dpa/SKILL.md)).315- [`doca-structured-tools-contract`](../../doca-structured-tools-contract/SKILL.md) —316 the bundle's structured-tools precedence rule (detect /317 prefer / fall back / report). The Command appendix in318 [TASKS.md](TASKS.md) honors this contract.319- [`doca-programming-guide`](../../doca-programming-guide/SKILL.md) —320 general DOCA programming patterns shared by every library:321 the canonical `pkg-config` + meson build pattern, the322 universal modify-a-shipped-sample first-app workflow, the323 universal Core-context lifecycle, the cross-library324 `DOCA_ERROR_*` taxonomy, and the program-side debug order.325 This skill layers PCC specifics on top.326- [`doca-debug`](../../doca-debug/SKILL.md) — the cross-cutting327 debug ladder (install / version / build / link / runtime /328 program / driver). PCC-specific debug (custom-PCC slot not329 enabled in firmware, DPACC + DOCA version skew, algorithm330 image rejected as incompatible with the device, traffic on331 the attached port not being affected because the algorithm332 body has no effect path) overlays on top of that ladder.333334The default factory PCC algorithms shipped inside ConnectX335firmware are **not in scope** for this skill — those work336without `doca-pcc` and are configured through firmware-level337knobs, not through any host-side library API. The338`pcc_counters` diagnostic CLI is **also not in scope** —339it is a separate artifact for *inspecting* runtime PCC340counters and lives under the public DOCA Tools umbrella.341Conflating either of those with the `doca-pcc` library is the342single most common PCC first-app design error.343