Want better lock encapsulation for the V2B/V2P/M2P tables

Aperta
#1,105 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
networking

Direzione di ricerca

Start in engine/overlay.rs and read the Virt2Boundary, Virt2Phys, and Mcast2Phys definitions, then review the lock-ordering discussion in PR #1086. The goal is to move these tables into their own modules so their fields and invariants are better encapsulated; the issue does not specify module boundaries or tests, so those need investigation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Virt2Boundary, Virt2Phys and Mcast2Phys all live at the top level of engine/overlay.rs, so their fields are visible to everything else in that module and the invariants they depend on are only weakly enforced by convention (e.g. the V2B's lock ordering with the pt* and ip* locks, as seen in the discussion in https://github.com/oxidecomputer/opte/pull/1086).

The code would likely benefit from moving these to their own mods that better encapsulate their invariants.

Lingua principale
Rust
Stelle
82
Fork
16
Merge medio
3g 6h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di oxidecomputer/opte

Tutte le issue di oxidecomputer/opte

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.