This software contribution implements P4Runtime RegisterEntry read and write support in the open-source P4 ecosystem, extending the P4Runtime Implementation (PI) framework and the BMv2 (Behavioral Model) software switch. The PI extension introduces register resource management across P4Info, the C and target APIs, DeviceMgr, and the command-line interface. It enables reading and writing individual register cells, wildcard operations, support for multiple P4 data types, and register state preservation during pipeline configuration reconciliation. The complementary BMv2 extension integrates these capabilities into simple_switch_grpc, enabling P4Runtime-based register access and supporting register values wider than 64 bits. The contribution also includes fixes for signed integer handling, input validation, and automated tests covering register operations and consistency between the control plane and data plane. Both contributions were accepted and merged into the official p4lang repositories on November 24, 2026. The implementation extends existing open-source projects rather than constituting a standalone software application.
Il contributo software introduce il supporto alle operazioni di lettura e scrittura dei registri (RegisterEntry) tramite il protocollo P4Runtime, estendendo due componenti open source dell'ecosistema P4: PI (P4Runtime Implementation) e BMv2 (Behavioral Model). L'estensione di PI implementa la gestione dei registri attraverso le API e i componenti del framework, includendo l'integrazione con P4Info e DeviceMgr. Le funzionalità sviluppate consentono l'accesso a singole celle dei registri e operazioni su più elementi, supportando differenti tipi di dati e preservando lo stato dei registri durante la riconfigurazione della pipeline. L'estensione di BMv2 integra tali funzionalità nello switch software simple_switch_grpc, rendendo possibile l'accesso ai registri attraverso l'interfaccia P4Runtime e introducendo il supporto a valori di ampiezza superiore a 64 bit. Il contributo comprende inoltre interventi di validazione degli input, correzioni relative alla gestione dei valori interi con segno e test automatizzati per verificare il corretto funzionamento delle operazioni sui registri e la coerenza tra piano di controllo e piano dati. Le modifiche sono state sottoposte a revisione e integrate nei repository ufficiali del progetto p4lang il 24 novembre 2026, attraverso due pull request distinte ma funzionalmente complementari. Il risultato costituisce un'estensione delle funzionalità di progetti software open source esistenti.
Rinieri, L. (2026). P4Runtime RegisterEntry Support in PI and BMv2.
P4Runtime RegisterEntry Support in PI and BMv2
Lorenzo Rinieri
Primo
Software
2026
Abstract
This software contribution implements P4Runtime RegisterEntry read and write support in the open-source P4 ecosystem, extending the P4Runtime Implementation (PI) framework and the BMv2 (Behavioral Model) software switch. The PI extension introduces register resource management across P4Info, the C and target APIs, DeviceMgr, and the command-line interface. It enables reading and writing individual register cells, wildcard operations, support for multiple P4 data types, and register state preservation during pipeline configuration reconciliation. The complementary BMv2 extension integrates these capabilities into simple_switch_grpc, enabling P4Runtime-based register access and supporting register values wider than 64 bits. The contribution also includes fixes for signed integer handling, input validation, and automated tests covering register operations and consistency between the control plane and data plane. Both contributions were accepted and merged into the official p4lang repositories on November 24, 2026. The implementation extends existing open-source projects rather than constituting a standalone software application.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.



