[dpdk-dev] [PATCH] app/testpmd: fix IP checksum calculation

Stephen Hemminger stephen at networkplumber.org
Thu Dec 3 17:08:12 CET 2020


On Thu, 3 Dec 2020 07:59:54 -0600
George Prekas <prekageo at amazon.com> wrote:

> Insert a compiler barrier to make sure that the IP checksum calculation
> happens after setting all the fields of the IP header.
> 
> Signed-off-by: George Prekas <prekageo at amazon.com>

I don't think this is necessary. All other OS's don't have to do this.
The CPU is going to maintain proper memory order.


More information about the dev mailing list