codegen: rust: when a table size is specified constrain generated tables to that size.
まだ誰も着手していません。
評価
調査の方向性
ソースファイル、テスト、エントリポイントのいずれも指定されていません。まず P4 仕様のセクション 14.2.1.5 を読み、テーブルサイズプロパティの Rust コード生成パスを特定してください。必要なターゲット ASIC のセマンティクスとコード生成オプションは、実装前に決定する必要があります。生成されたテーブルが設定されたサイズ動作に従うことを Done の条件とします。
索引モデルが issue の本文から書いたものです。
説明
The primary purpose of the Rust code generation is to emulate real ASICs. To that end, when a table size property is provided, the underlying table that gets generated in Rust code should behave like the target ASIC does when size number of entries is reached.
The P4 spec is vague on what the semantics of table sizes are. From the P4 spec section 14.2.1.5 we have
If a table has a size value specified for it with value N, it is recommended that a compiler should choose a data plane implementation that is capable of storing N table entries. This does not guarantee that an arbitrary set of N entries can always be inserted in such a table, only that there is some set of N entries that can be inserted.
So there is no prescribed behavior here. We should probably have code generation options that can capture what the target ASIC being emulated does.
- 主要言語
- Rust
- スター
- 140
- フォーク
- 14
- 平均マージ
- 3日 18時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oxidecomputer/p4 のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
oxidecomputer/p4#279 ·
-
Resubmit-based user loadable programs再び着手できるかも @Robby-work が 71 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
oxidecomputer/p4#275 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
oxidecomputer/p4#193 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
oxidecomputer/p4#192 · コメント 1 件 ·
-
bug front-end
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
oxidecomputer/p4#159 ·
oxidecomputer/p4 の issue をすべて見る
似ている issue
-
area: cli good first issue type: feature
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
renaming a provider to a taken name fails with a raw sql error対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:storage kind:bug priority:p3 ready
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug bugfix
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
storytold/photocraft#16975 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信