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

Stephen Hemminger stephen at networkplumber.org
Thu Jan 7 17:29:28 CET 2021


On Thu, 7 Jan 2021 15:59:59 +0000
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

> >>
> >> int main(void)
> >> {
> >> 	pkt_burst_flow_gen();
> >> 	return 0;
> >> }  
> > 
> > If I change your code like this to use union, Gcc 10 is still broken.  
> 
> This worked fine for me: https://godbolt.org/z/vdsxh9

I was looking for wrong result.
The union version gives same answer with and without optimization.


More information about the dev mailing list