From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 315578E96 for ; Wed, 14 Sep 2016 14:39:24 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP; 14 Sep 2016 05:39:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,333,1470726000"; d="scan'208";a="1039717823" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.117]) ([10.237.220.117]) by fmsmga001.fm.intel.com with ESMTP; 14 Sep 2016 05:39:21 -0700 To: Olivier Matz , "dev@dpdk.org" , "Ananyev, Konstantin" , "Zhang, Helin" References: <1467893942-4048-1-git-send-email-olivier.matz@6wind.com> Cc: "Richardson, Bruce" , Maxime Leroy From: Ferruh Yigit Message-ID: <393a6c5f-e066-94ad-9d68-9c2a761ebc69@intel.com> Date: Wed, 14 Sep 2016 13:39:21 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1467893942-4048-1-git-send-email-olivier.matz@6wind.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH] ixgbe: support checksum flags in sse vector Rx function 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: Wed, 14 Sep 2016 12:39:24 -0000 On 7/7/2016 1:19 PM, Olivier Matz wrote: > Update desc_to_olflags_v() to set PKT_RX_IP_CKSUM_BAD and > PKT_RX_L4_CKSUM_BAD in the ol_fags of the mbuf. > > The Rx vector function can now be used with hw_ip_checksum > enabled. > > Tested with: > > cd dpdk.org/ > make config T=x86_64-native-linuxapp-gcc > make -j32 > mkdir -p /mnt/huge > mount -t hugetlbfs nodev /mnt/huge > echo 256 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages > modprobe uio_pci_generic > python tools/dpdk_nic_bind.py -b uio_pci_generic 0000:04:00.0 > ./build/app/testpmd -l 2,4 -- --total-num-mbufs=65536 -i --port-topology=chained --enable-rx-cksum --disable-hw-vlan-filter --disable-hw-vlan-strip > set fwd rxonly > set verbose 1 > start > > # send packets to testpmd using scapy > eh = Ether(src="00:01:02:03:04:05", dst="00:1B:21:AB:8F:10") > p = Ether()/IP(src="1.1.1.1", dst="1.1.1.2")/UDP()/Raw("x"*50) > sendp(p, iface="ixgbe2") > p = Ether()/IP(src="1.1.1.1", dst="1.1.1.2", chksum=42)/UDP()/Raw("x"*50) > sendp(p, iface="ixgbe2") > p = Ether()/IP(src="1.1.1.1", dst="1.1.1.2")/UDP(chksum=42)/Raw("x"*50) > sendp(p, iface="ixgbe2") > p = Ether()/IP(src="1.1.1.1", dst="1.1.1.2", chksum=45)/UDP(chksum=42)/Raw("x"*50) > sendp(p, iface="ixgbe2") > > # result > port 0/queue 0: received 1 packets > src=00:01:02:03:04:05 - dst=00:1B:21:AB:8F:10 - type=0x0800 - length=92 - nb_segs=1Unknown packet type > - Receive queue=0x0 > port 0/queue 0: received 1 packets > src=00:01:02:03:04:05 - dst=00:1B:21:AB:8F:10 - type=0x0800 - length=92 - nb_segs=1Unknown packet type > - Receive queue=0x0 > PKT_RX_IP_CKSUM_BAD > port 0/queue 0: received 1 packets > src=00:01:02:03:04:05 - dst=00:1B:21:AB:8F:10 - type=0x0800 - length=92 - nb_segs=1Unknown packet type > - Receive queue=0x0 > PKT_RX_L4_CKSUM_BAD > port 0/queue 0: received 1 packets > src=00:01:02:03:04:05 - dst=00:1B:21:AB:8F:10 - type=0x0800 - length=92 - nb_segs=1Unknown packet type > - Receive queue=0x0 > PKT_RX_L4_CKSUM_BAD > PKT_RX_IP_CKSUM_BAD > > Signed-off-by: Maxime Leroy > Signed-off-by: Olivier Matz > --- ixgbe maintainers, can you please review the patch?