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

Ferruh Yigit ferruh.yigit at intel.com
Mon Jan 18 16:20:33 CET 2021


On 1/7/2021 8:42 PM, George Prekas wrote:
> Strict-aliasing rules are violated by cast to uint16_t* in flowgen.c and
> the calculated IP checksum is wrong. Use attribute __may_alias__ to fix
> the problem.
> 
> Signed-off-by: George Prekas <prekageo at amazon.com>

     Fixes: e9e23a617eb8 ("app/testpmd: add flowgen forwarding engine")
     Cc: stable at dpdk.org

Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list