Skip to content

Commit

Permalink
Add information about the initial default action to tables in the P4I…
Browse files Browse the repository at this point in the history
…nfo file. (#486)
  • Loading branch information
fruffy authored Aug 18, 2024
1 parent d175898 commit ec4eb5e
Show file tree
Hide file tree
Showing 5 changed files with 762 additions and 467 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`, the default action that is executed with the
specified arguments 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` | `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
Loading

0 comments on commit ec4eb5e

Please sign in to comment.