Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed Jul 9, 2024
1 parent 86f7e25 commit ac790a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/v1/P4Runtime-Spec.mdk
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,11 @@ control plane. This message contains the following fields:
set a different default action at runtime or change the default action's
arguments.

* `initial_default_action_id`, the `uint32` identifier of the default action
that is executed when the table does not match. If no explicit default
action is set, the identifier of this field will default to the id of the
`NoAction` action.

* `implementation_id`, the `uint32` identifier of the "implementation" of this
table. 0 (default value) means that the table is a regular (direct) match
table. Otherwise, this field will carry the ID of an extern instance specified
Expand Down
1 change: 1 addition & 0 deletions docs/v1/p4runtime-id-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ them may be 0, described in the notes.
| Field name | Message type | Type of P4 object referred to | Notes |
| ---------- | ------------ | ----------------------------- | ----- |
| `const_default_action_id` | `Table` | `Action` | 0 means "the table's `default_action` is not declared `const` |
| `initial_default_action_id` | `Table` | `Action` | The initial default action used by the table. Can be overridden at runtime. |
| `implementation_id` | `Table` | `ActionProfile` | 0 means "this table has no `implementation` table property. |
| `direct_resource_ids` | `Table` | `DirectCounter` or `DirectMeter` | repeated so that a single table can refer to up to one of each |
| `id` | sub-message `ActionRef` inside `Table` | `Action` | `ActionRef` messages are repeated, with a separate one for each action the table might invoke. `ActionRef` messages contain optional annotation and `Scope` values that are specific to how a particular table is allowed to use that `Action` |
Expand Down

0 comments on commit ac790a2

Please sign in to comment.