Brief description of P4 architecture that this compiler implements?

オープン
#54 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
静か
技術スタック
rust

調査の方向性

まず core.p4 と softnpu.p4 への参照を読み、次に x4c が ingress_meta、egress_meta、control parameters、empty drop actions をどのように扱うかを追跡します。これらが特殊なケースであるかどうかを文書化し、実装に基づいた回答とともに、その他のサポートされているアーキテクチャをすべて列挙できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Thanks for releasing this! I finally got around to trying it out briefly today, and had some questions about the architecture that is implemented.

I see #include of a core.p4 file in a few files, and softnpu.p4 in some others.

Are the struct fields named port specially recognized by the implementation when they are in structs named ingress_meta or egress_meta somehow? Or that are the 2nd parameter or 3rd parameter of the ingress or egress controls of the SoftNPU package?

I see an action defined as action drop() { } in some code examples, but it is empty. Is the action name drop somehow specially recognized by the compiler? What effects does invoking that action have, if so?

Are there any other architectures besides SoftNpu that x4c supports?

主要言語
Rust
スター
140
フォーク
14
平均マージ
3日 18時間
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oxidecomputer/p4 のほかの issue

oxidecomputer/p4 の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。