Good day. For fragmented packets I found that odp_pktio_stats returns invalid in_errors value. In my case there were no errors, but for every non first packet the value was incremented for every receive fragment packet.
So I checked this error with next odp_packet_has_l4_error method and found that ODP set tcp_err and udp_err.
The problem here:
https://github.com/OpenDataPlane/odp/blob/master/platform/linux-generic/odp_parse.c#L289
https://github.com/OpenDataPlane/odp/blob/master/platform/linux-generic/odp_parse.c#L260
For fragmented TCP or UDP packets we have header only in first fragment, and other fragments don't have header. That is why this check is only valid for first fragment.
Good day. For fragmented packets I found that odp_pktio_stats returns invalid in_errors value. In my case there were no errors, but for every non first packet the value was incremented for every receive fragment packet.
So I checked this error with next odp_packet_has_l4_error method and found that ODP set tcp_err and udp_err.
The problem here:
https://github.com/OpenDataPlane/odp/blob/master/platform/linux-generic/odp_parse.c#L289
https://github.com/OpenDataPlane/odp/blob/master/platform/linux-generic/odp_parse.c#L260
For fragmented TCP or UDP packets we have header only in first fragment, and other fragments don't have header. That is why this check is only valid for first fragment.