Comments on the P4 book
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- documentation
Direzione di ricerca
Leggi book/text/src/01-02-hello_world.md e book/text/src/02-01-vlan-switch.md, quindi verifica il comportamento del parser e delle assegnazioni citato rispetto alle specifiche pertinenti del linguaggio e dell’architettura P4. Il lavoro è completato quando la spiegazione del parser, il refuso e la formulazione o inizializzazione dell’esempio VLAN riflettono il comportamento documentato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Most of these are nits, but thought I would mention them after reading through the book so far:
==========
File https://github.com/oxidecomputer/p4/blob/main/book/text/src/01-02-hello_world.md
"Parsers can also transition to the implicit reject state. This means that the packet will be dropped and not go on to any further processing."
Note that v1model, PSA, PNA, and TNA architectures all define that packets that go to the reject state in the parser actually do go to ingress (or main for PNA) processing after parsing is complete, but they also document that typically your P4 code is likely to want to drop the packet in ingress/main controls if that happens. I can imagine in some debug situations one would like to punt a copy of packets experiencing a parser error to the CPU.
Tofino I believe has chip-wide config to drop packets that reach a parser reject state, without going to ingress/egress processing after that, but I believe it is not the default option.
Typo: "I prime example" -> "A prime example"
=========
File https://github.com/oxidecomputer/p4/blob/main/book/text/src/02-01-vlan-switch.md
Kind of a subtle point, but I believe from the language spec point of view, the assignment of false to vlan_ok before calling vlan.apply() is a "dead" assignment. No matter what value it has before vlan.apply(), the copy-out behavior of vlan.apply() should overwrite that value. Since the vlan control never assigns false to this out parameter, and only sometimes assigns true, the end value of vlan_ok could be undefined garbage. Perhaps in your implementation all bool values are predictably initialized to false?
In any case, the way to write this more portably in P4 would be to initialize match = false; before the port_vlan.apply(); call in the body of the vlan control.
- Lingua principale
- Rust
- Stelle
- 140
- Fork
- 14
- Merge medio
- 3g 18h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oxidecomputer/p4
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
oxidecomputer/p4#279 ·
-
Resubmit-based user loadable programsForse di nuovo libera @Robby-work l’ha presa 71 giorni fa e non c’è nessuna pull request aperta. Aperta
oxidecomputer/p4#275 · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
oxidecomputer/p4#193 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
oxidecomputer/p4#192 · 1 commento ·
-
bug front-end
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
oxidecomputer/p4#159 ·
Tutte le issue di oxidecomputer/p4
Issue simili
-
area: cli good first issue type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
renaming a provider to a taken name fails with a raw sql errorForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea:storage kind:bug priority:p3 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug bugfix
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
storytold/photocraft#16975 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
expo/exact#1716 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno