numam-dpdk/lib/librte_net
Daniel Mrzyglod e079655c41 net: fix build with gcc 4.4.7 and strict aliasing
This fix is for IPv6 checksum offload error on RHEL65.
Any optimalisation above -O0 provide error in IPv6 checksum
flag "-fstrict-aliasing" is default for optimalisation above -O0.

Step 1: testpmd -c 0x6 -n 4  -- -i --portmask=0x3 --disable-hw-vlan
                --enable-rx-cksum --crc-strip --txqflags=0
Step 2: settings and start
           set verbose 1
           set fwd csum
           start
Step 3: send scapy with bad checksum IPv6/TCP packet
           Ether(src="52:00:00:00:00:00",
  dst="90:e2:ba:4a:33:5d")/IPv6(src="::1")/TCP(chksum=0xf)/("X"*46)
Step 4: Received packets:
           RESULTS: IPv6/TCP': ['0xd41'] or other unexpected.
  EXPECTED RESULTS: IPv6/TCP': ['0x9f5e']

Fixes: 2b039d5f20 ("net: fix build with gcc 4.4.7 and strict aliasing")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2015-11-25 22:11:37 +01:00
..
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_arp.h net: change arp header struct declaration 2015-02-20 22:10:52 +01:00
rte_icmp.h app/testpmd: add engine that replies to ARP and ICMP echo requests 2014-05-16 13:25:16 +02:00
rte_ip.h net: fix build with gcc 4.4.7 and strict aliasing 2015-11-25 22:11:37 +01:00
rte_sctp.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_tcp.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_udp.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00