Skip to content

[PATCH v2] linux-gen: parse: fix parsing of non-first IPv4 fragments#2345

Open
MatiasElo wants to merge 1 commit intoOpenDataPlane:masterfrom
MatiasElo:fix/parsing
Open

[PATCH v2] linux-gen: parse: fix parsing of non-first IPv4 fragments#2345
MatiasElo wants to merge 1 commit intoOpenDataPlane:masterfrom
MatiasElo:fix/parsing

Conversation

@MatiasElo
Copy link
Copy Markdown
Collaborator

No description provided.

@odpbuild odpbuild changed the title linux-gen: parse: fix parsing of non-first IPv4 fragments [PATCH v1] linux-gen: parse: fix parsing of non-first IPv4 fragments Apr 30, 2026
Non-first IPv4 fragments do not include a complete L4 header. The parser
was unconditionally parsing TCP/UDP/SCTP headers for all fragments, causing
spurious errors. This in turn caused odp_pktio_stats() to report invalid
'in_errors' for every non-first fragment received. Fix this by stopping
parsing after L3 for non-first IPv4 fragments.

Also, make _odp_packet_l4_chksum() handling of fragmented packets more
robust and change the if clauses to be exclusive.

Closes: OpenDataPlane#2342

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
@odpbuild odpbuild changed the title [PATCH v1] linux-gen: parse: fix parsing of non-first IPv4 fragments [PATCH v2] linux-gen: parse: fix parsing of non-first IPv4 fragments May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants