Skip to content

net_pkt: Store meta-information of processing in the net_pkt #93298

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ClaCodes
Copy link
Contributor

Store a flag about which layer has already processed a packet in its meta
information. This enables deferred processing of it.

Based on: #93246

ClaCodes added 4 commits July 18, 2025 06:39
Store the flag in the packet meta-data so that processing may be deferred
if necessary.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
Use the l2_processed-flag to decide whether a network packet needs to be
processed by an L2-handler. This could be used in the future to requeue
packets for later processing by a different traffic class queue.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
Specify the socket type, when inputing a packet into a packet-socket.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
When handling packets for inputing into packet-sockets, unconditionally
forward them, so that they may be handled by the rest of the network
stack after.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
@ClaCodes ClaCodes force-pushed the feature/processed_flags branch from db886f3 to e3e4e6b Compare July 18, 2025 06:06
@ClaCodes ClaCodes force-pushed the feature/processed_flags branch 2 times, most recently from 827a2da to 637c1b0 Compare July 19, 2025 12:04
Store a flag about which layer has already processed a packet in its meta
information. This enables deferred processing of it.

Signed-off-by: Cla Mattia Galliard <clamattia@gmail.com>
@ClaCodes ClaCodes force-pushed the feature/processed_flags branch from 637c1b0 to 12e8e59 Compare July 19, 2025 12:30
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants