Skip to content

Commit

Permalink
WIP. Move some more work into the links so it can be specialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiceatscion committed Feb 28, 2025
1 parent 32ca823 commit 0ba0d52
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 117 deletions.
2 changes: 1 addition & 1 deletion router/dataplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ type Packet struct {
// The type of traffic. This is used for metrics at the forwarding stage, but is most
// economically determined at the processing stage. So store it here. It's 2 bytes long.
trafficType trafficType
// Pad to 64 bytes. For 64bit arch, add 12 bytes. For 32bit arch, add 32 bytes.
// Pad to 64 bytes. For 64bit arch, add 4 bytes. For 32bit arch, add 28 bytes.
_ [4 + is32bit*24]byte
}

Expand Down
Loading

0 comments on commit 0ba0d52

Please sign in to comment.