[dpdk-dev] [PATCH] librte_net: fix TX checksum offload problem with IPv6 packet.

2014-12-17 Thread Thomas Monjalon
> > For rte_ipv6_phdr_cksum() gcc 4.8.* with "-O3" not always generates > > correct code. > > Sometimes it 'forgets' to put len and proto fields of psd_header on the > > stack. > > To overcome that problem and speedup things a bit, refactored > > rte_raw_cksum() > > by splitting ipv6 pseudo-heade

[dpdk-dev] [PATCH] librte_net: fix TX checksum offload problem with IPv6 packet.

2014-12-11 Thread Olivier MATZ
Hi Konstantin, On 12/11/2014 12:49 PM, Konstantin Ananyev wrote: > For rte_ipv6_phdr_cksum() gcc 4.8.* with "-O3" not always generates > correct code. > Sometimes it 'forgets' to put len and proto fields of psd_header on the stack. > To overcome that problem and speedup things a bit, refactored rt

[dpdk-dev] [PATCH] librte_net: fix TX checksum offload problem with IPv6 packet.

2014-12-11 Thread Konstantin Ananyev
For rte_ipv6_phdr_cksum() gcc 4.8.* with "-O3" not always generates correct code. Sometimes it 'forgets' to put len and proto fields of psd_header on the stack. To overcome that problem and speedup things a bit, refactored rte_raw_cksum() by splitting ipv6 pseudo-header csum calculation into 3 phas