Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize packetparserPacket struct fields to minimize padding #1121

Open
SRodi opened this issue Dec 11, 2024 · 0 comments
Open

Optimize packetparserPacket struct fields to minimize padding #1121

SRodi opened this issue Dec 11, 2024 · 0 comments
Labels
area/ebpf lang/c The C Programming Language

Comments

@SRodi
Copy link
Member

SRodi commented Dec 11, 2024

Issue

Extra padding is present in packetparserPacket struct. This should be optimized.

Goal

Look into a way to re-arrange the struct so that we can minimize the paddings.

Suggested Solution

Remove struct fields as some fields could be combined - for example TrafficDirection, Proto and IsReply, which could be merged into the Flags field, or a new field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ebpf lang/c The C Programming Language
Projects
Status: No status
Development

No branches or pull requests

1 participant