From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by dpdk.org (Postfix) with ESMTP id 5FA83156 for ; Thu, 7 Nov 2013 04:09:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1383793829; x=1415329829; h=from:to:subject:date:message-id:references:in-reply-to: mime-version; bh=4Vsv/wuCk+w4SIq+hZcuZ13q5xjRVTlGT8iMs34BRzc=; b=frJwWRzAnKxalwu6npDHiYxGxuMwSAuc4iVz3cQnDjuaiMLaB1LJUlUo 4r0qnh3DgiCN0T6cHKNq07FUKVg1H0JH46H+wEsTDHbkRdLQ8ix9soMLM TrVzBgkgrMxxN4PU7S1SZQuXtHpZxogYt5nEoAgwzcKoSHcNNcfSYFu48 U=; X-Amazon-filename: Full text of the rx checksum issues testing & vali X-IronPort-AV: E=Sophos;i="4.93,648,1378857600"; d="scan'208";a="40062" Received: from smtp-in-9002.sea19.amazon.com ([10.186.174.20]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Nov 2013 03:10:27 +0000 Received: from ex10-hub-9001.ant.amazon.com (ex10-hub-9001.ant.amazon.com [10.185.137.58]) by smtp-in-9002.sea19.amazon.com (8.14.7/8.14.7) with ESMTP id rA73AQe6005026 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK) for ; Thu, 7 Nov 2013 03:10:27 GMT Received: from EX10-MBX-36002.ant.amazon.com ([fe80::cd97:16ef:48e8:b9f5]) by ex10-hub-9001.ant.amazon.com ([::1]) with mapi id 14.02.0342.003; Wed, 6 Nov 2013 19:09:15 -0800 From: "Benson, Bryan" To: "dev@dpdk.org" Thread-Topic: RX checksum offloading Thread-Index: Ac7bS6VHDEWA3z2uR/6QWCn3UF0daAAGLuCO Date: Thu, 7 Nov 2013 03:09:15 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [172.17.1.118] MIME-Version: 1.0 Precedence: Bulk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] RX checksum offloading X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2013 03:09:36 -0000 All,=0A= The receive checksum issue seems to be caused by using a RX_FREE_THRESH val= ue that is 32 or larger, as validated by the test-pmd application.=0A= I used 2 different packet types - bad IP checksum sent to port 0 and bad tc= p checksum to port 1. The way I was sending the packets did not vary betwe= en the various tests.=0A= =0A= Below is a brief summary of the testing - additional gory text is attached.= =0A= =0A= 0, 8, 16, 24, 28, 30, 31 are okay.=0A= =0A= Values above 32 are not, as tested with 32, 64 and 128.=0A= =0A= I will continue researching this - The version I used to test this is the v= anilla version of DPDK 1.3, but with the RSC disable patch applied (helps w= hen there are many ACKs).=0A= =0A= Thanks,=0A= Bryan Benson=0A= =0A= [bmbenson]~/1.3.1.1/DPDK% sudo ./x86_64-default-linuxapp-gcc/app/testpmd -= c 0xFF00FF00 -n 4 -b 0000:06:00.0 -- --portmask=3D0x3 --nb-cores=3D2 --enab= le-rx-cksum --disable-hw-vlan --disable-rss --crc-strip --rxd=3D1024 --txd= =3D1024 -i =0A= ... =0A= testpmd> set fwd csum=0A= Set csum packet forwarding mode=0A= testpmd> start=0A= csum packet forwarding - CRC stripping enabled - packets/burst=3D16=0A= nb forwarding cores=3D2 - nb forwarding ports=3D2=0A= RX queues=3D1 - RX desc=3D1024 - RX free threshold=3D0=0A= RX threshold registers: pthresh=3D8 hthresh=3D8 wthresh=3D4=0A= TX queues=3D1 - TX desc=3D1024 - TX free threshold=3D0=0A= TX threshold registers: pthresh=3D36 hthresh=3D0 wthresh=3D0=0A= TX RS bit threshold=3D0 - TXQ flags=3D0x0=0A= testpmd> stop=0A= =0A= Telling cores to stop...=0A= Waiting for lcores to finish...=0A= =0A= ---------------------- Forward statistics for port 0 -------------------= ---=0A= RX-packets: 490511 RX-dropped: 0 RX-total: 490511=0A= Bad-ipcsum: 490496 Bad-l4csum: 0 =0A= TX-packets: 488720 TX-dropped: 0 TX-total: 488720=0A= -------------------------------------------------------------------------= ---=0A= =0A= ---------------------- Forward statistics for port 1 -------------------= ---=0A= RX-packets: 488804 RX-dropped: 0 RX-total: 488804=0A= Bad-ipcsum: 0 Bad-l4csum: 488704 =0A= TX-packets: 490511 TX-dropped: 0 TX-total: 490511=0A= -------------------------------------------------------------------------= ---=0A= =0A= +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++= ++=0A= RX-packets: 979315 RX-dropped: 0 RX-total: 979315=0A= TX-packets: 979231 TX-dropped: 0 TX-total: 979231=0A= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++=0A= =0A= Done.=0A= =0A= [bmbenson]~/1.3.1.1/DPDK% sudo ./x86_64-default-linuxapp-gcc/app/testpmd -c= 0xFF00FF00 -n 4 -b 0000:06:00.0 -- --portmask=3D0x3 --nb-cores=3D2 --enabl= e-rx-cksum --disable-hw-vlan --disable-rss --crc-strip --rxd=3D1024 --txd= =3D1024 --rxfreet=3D32 -i=0A= ... =0A= testpmd> set fwd csum=0A= Set csum packet forwarding mode=0A= testpmd> start=0A= csum packet forwarding - CRC stripping enabled - packets/burst=3D16=0A= nb forwarding cores=3D2 - nb forwarding ports=3D2=0A= RX queues=3D1 - RX desc=3D1024 - RX free threshold=3D32=0A= RX threshold registers: pthresh=3D8 hthresh=3D8 wthresh=3D4=0A= TX queues=3D1 - TX desc=3D1024 - TX free threshold=3D0=0A= TX threshold registers: pthresh=3D36 hthresh=3D0 wthresh=3D0=0A= TX RS bit threshold=3D0 - TXQ flags=3D0x0=0A= testpmd> stop=0A= =0A= Telling cores to stop...=0A= Waiting for lcores to finish...=0A= =0A= ---------------------- Forward statistics for port 0 -------------------= ---=0A= RX-packets: 378894 RX-dropped: 0 RX-total: 378894=0A= Bad-ipcsum: 0 Bad-l4csum: 0 =0A= TX-packets: 381197 TX-dropped: 0 TX-total: 381197=0A= -------------------------------------------------------------------------= ---=0A= =0A= ---------------------- Forward statistics for port 1 -------------------= ---=0A= RX-packets: 381197 RX-dropped: 0 RX-total: 381197=0A= Bad-ipcsum: 0 Bad-l4csum: 0 =0A= TX-packets: 378894 TX-dropped: 0 TX-total: 378894=0A= -------------------------------------------------------------------------= ---=0A= =0A= +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++= ++=0A= RX-packets: 760091 RX-dropped: 0 RX-total: 760091=0A= TX-packets: 760091 TX-dropped: 0 TX-total: 760091=0A= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++=0A= =0A=