Skip to content

p4_pdpi: avoid copies on the PacketIn/PacketOut translation hot path. - #114

Merged
copybara-service[bot] merged 1 commit into
mainfrom
cl/987818372
Oct 7, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
cl/987818372

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

p4_pdpi: avoid copies on the PacketIn/PacketOut translation hot path.

PiPacketIoToIr / IrPacketIoToPd no longer copy the metadata definition maps or the metadata definitions, only format error strings on the error path, and move the payload into the PD message instead of copying it.

@copybara-service
copybara-service Bot force-pushed the cl/987818372 branch 3 times, most recently from 607f5cd to 6514deb Compare October 7, 2026 21:38
@copybara-service copybara-service Bot changed the title message/no-op p4_pdpi: avoid copies on the PacketIn/PacketOut translation hot path. Oct 7, 2026
PiPacketIoToIr / IrPacketIoToPd no longer copy the metadata definition maps or the metadata definitions, only format error strings on the error path, and move the payload into the PD message instead of copying it.

PiperOrigin-RevId: 995378992
@copybara-service
copybara-service Bot merged commit 6717836 into main Oct 7, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the cl/987818372 branch October 7, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants