Comments on the P4 book
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Área
- documentation
Línea de trabajo
Lea book/text/src/01-02-hello_world.md y book/text/src/02-01-vlan-switch.md; después, verifique el comportamiento del parser y de las asignaciones citado con las especificaciones relevantes del lenguaje y la arquitectura P4. Se considera terminado cuando la explicación del parser, el error tipográfico y la redacción o inicialización del ejemplo de VLAN reflejen el comportamiento documentado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 140
- Forks
- 14
- Merge medio
- 3 d 18 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de oxidecomputer/p4
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
oxidecomputer/p4#279 ·
-
Resubmit-based user loadable programsQuizá libre de nuevo @Robby-work la tomó hace 71 días y no hay ningún pull request abierto. Abierto
oxidecomputer/p4#275 · 1 asignado ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
oxidecomputer/p4#193 · 1 comentario ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
oxidecomputer/p4#192 · 1 comentario ·
-
bug front-end
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
oxidecomputer/p4#159 ·
Todos los issues de oxidecomputer/p4
Issues similares
-
area: cli good first issue type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
renaming a provider to a taken name fails with a raw sql errorPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea:storage kind:bug priority:p3 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug bugfix
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
storytold/photocraft#16975 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
expo/exact#1716 · 1 comentario ·
Los mantenedores suelen responder en 1 día