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 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 3 times, most recently from 637c1b0 to 12e8e59 Compare July 19, 2025 12:30
ClaCodes added 4 commits July 23, 2025 07:59
Store the flag in the packet meta-data so that processing may be deferred
if necessary.

Signed-off-by: Cla Mattia Galliard <[email protected]>
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 <[email protected]>
Specify the socket type, when inputting a packet into a packet-socket.

Signed-off-by: Cla Mattia Galliard <[email protected]>
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 <[email protected]>
@ClaCodes ClaCodes force-pushed the feature/processed_flags branch from 12e8e59 to ae41bbf Compare July 23, 2025 07:04
@ClaCodes
Copy link
Contributor Author

  • Rebased
  • Fixed some test failures

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 <[email protected]>
@ClaCodes ClaCodes force-pushed the feature/processed_flags branch from ae41bbf to 0630e2e Compare July 24, 2025 06:23
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