From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D65208F9E for ; Tue, 24 Nov 2015 16:47:30 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 24 Nov 2015 07:47:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,338,1444719600"; d="scan'208";a="693456395" Received: from irsmsx104.ger.corp.intel.com ([163.33.3.159]) by orsmga003.jf.intel.com with ESMTP; 24 Nov 2015 07:47:29 -0800 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.132]) by IRSMSX104.ger.corp.intel.com ([169.254.5.138]) with mapi id 14.03.0248.002; Tue, 24 Nov 2015 15:47:28 +0000 From: "Mrzyglod, DanielX T" To: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net: fix build with gcc 4.4.7 and strict aliasing Thread-Index: AQHRJsq58z7tlK8e/k6WBRGq4kpjE56rTn7A Date: Tue, 24 Nov 2015 15:47:28 +0000 Message-ID: <7ADD74816B4C8A45B56203CBA65FE5A61D98E602@IRSMSX107.ger.corp.intel.com> References: <1448377959-4440-1-git-send-email-danielx.t.mrzyglod@intel.com> In-Reply-To: <1448377959-4440-1-git-send-email-danielx.t.mrzyglod@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net: fix build with gcc 4.4.7 and strict aliasing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2015 15:47:31 -0000 This error fix this situation for IPv6 checksum offload error on RHEL65 Any optimalisation above -O0 provide error in IPv6 checksum Step 1 : start testpmd ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x6 -n 4 -- -i --portmask=3D0x= 3 --disable-hw-vlan --enable-rx-cksum --crc-strip --txqflags=3D0 Step 2 : settings and start set verbose 1 set fwd csum start Step 3 : calculate correct checksum values of IPv6/TCP and IPv6/UDP by scap= y Packets info: IPv6/UDP:Ether(dst=3D"02:00:00:00:00:00", src=3D"= 90:e2:ba:4a:33:5c")/IPv6(src=3D"::2")/UDP()/("X"*46) IPv6/TCP: Ether(src=3D"52:00:00:00:00:00", dst= =3D"90:e2:ba:4a:33:5d")/IPv6(src=3D"::1")/TCP()/("X"*46) Step 4 : Send two packets with wrong checksum value,and calculate the right= checksum value by port,packets received on another port Send packets info: IPv6/UDP=1B$B!'=1B(BEther(dst=3D"90:e2:ba:4a:= 33:5d", src=3D"52:00:00:00:00:00")/IPv6(src=3D"::1")/UDP(chksum=3D0xf)/("X"= *46) IPv6/TCP=1B$B!'=1B(BEther(dst=3D"90:e2:ba:4a:= 33:5d", src=3D"52:00:00:00:00:00")/IPv6(src=3D"::1")/TCP(chksum=3D0xf)/("X"= *46) RESULTS: 'IPv6/TCP': ['0xd41']}, 'IPv6/UDP': ['0x7d07'], EXPECTED RESULTS: 'IPv6/TCP': ['0x9f5e']}, 'IPv6/UDP': ['0xf26']