odp icon indicating copy to clipboard operation
odp copied to clipboard

[PATCH v1] test/performance: fix IPv4 checksum

Open rahul-bhansali opened this issue 8 months ago • 0 comments

An issue of incorrect IPv4 checksum is observed when sources are compiled in release mode with optimization flags -fno-var-tracking-assignments. On annotating, it was observed that few IP header fields are updated after checksum calculation routine.

Using this API odph_ipv4_csum_update() solves the issue as it synchronizes the load/store instructions.

rahul-bhansali avatar Jun 20 '24 14:06 rahul-bhansali