Skip to content

[p4rs, codegen] Pipeline::clear_table_entries, + helios CI bump - #278

Merged
zeeshanlakhani merged 3 commits into
mainfrom
zl/clear-table-ents
Oct 22, 2026
Merged

zeeshanlakhani merged 3 commits into
mainfrom
zl/clear-table-ents

Conversation

@zeeshanlakhani

Copy link
Copy Markdown
Contributor

When dpd restarts against a running softnpu pipeline, previous table entries persist, even though the daemon does not know what the keys are. Pipeline had support for add/remove by key and a dump command, but there was no generic way to empty tables.

This work adds a clear_table_entries(table_id) to the trait. In codegen, we now emit a clear_<qtfn>_entries per table alongside the add/remove/get ones.

With this change in place, softnpu can use it for a write-only TableClear management message, so that dendrite's SoftNPU TableOps::clear can be un-stubbed.

Includes:

  • [ci] s/helios-2.0/helios-3.0/ matching other networking repos.

When dpd restarts against a running softnpu pipeline, previous
table entries persist, even though the daemon does not know
what the keys are. `Pipeline` had support for add/remove
by key and a dump command, but there was no generic way
to empty tables.

This work adds a `clear_table_entries(table_id)` to the trait.
In codegen, we now emit a `clear_<qtfn>_entries` per table alongside
the add/remove/get ones.

With this change in place, softnpu can use it for a write-only
`TableClear` management message, so that dendrite's SoftNPU
`TableOps::clear` can be un-stubbed.

Includes:
- [ci] s/helios-2.0/helios-3.0/ matching other networking
  repos.

@nicolaskagami nicolaskagami left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Just had a very slight nit.

Comment thread test/src/table_clear.rs Outdated

@nicolaskagami nicolaskagami left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I see you've also added a bool to show if the table exists.

@zeeshanlakhani
zeeshanlakhani merged commit aa0d3c8 into main Oct 22, 2026
4 checks passed
@zeeshanlakhani
zeeshanlakhani deleted the zl/clear-table-ents branch October 22, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants