From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2C6B8C35A for ; Thu, 16 Apr 2015 04:55:52 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 15 Apr 2015 19:55:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,585,1422950400"; d="scan'208";a="709902259" Received: from pgsmsx106.gar.corp.intel.com ([10.221.44.98]) by fmsmga002.fm.intel.com with ESMTP; 15 Apr 2015 19:55:50 -0700 Received: from pgsmsx108.gar.corp.intel.com ([169.254.8.32]) by PGSMSX106.gar.corp.intel.com ([169.254.9.150]) with mapi id 14.03.0224.002; Thu, 16 Apr 2015 10:55:49 +0800 From: "Choi, Sy Jong" To: "dev@dpdk.org" Thread-Topic: vhost-switch TX corrupted packet with Fedora 21 VM Thread-Index: AdB36n+JbNk1AWSDQDioHDdGdEI+4w== Date: Thu, 16 Apr 2015 02:55:48 +0000 Message-ID: <697F8B1B48670548A5BAB03E8283550F353F35D6@PGSMSX108.gar.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] vhost-switch TX corrupted packet with Fedora 21 VM 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: Thu, 16 Apr 2015 02:55:52 -0000 Hi Sending packets out from virtio to dpdk vhost to phy will cause packets cor= ruption I have tested this using=20 - DPDK 2.0.0 using vhost-cuse,=20 - qemu 1.6.1.=20 - DPDK vhost-switch sample app. Fedara 21 (kernel 3.19), packets corrupted. Debian Wheezy (kernel 3.2), packets are ok. Sometime the packets was not even sent out, and I keep getting this message= .=20 VHOST_DATA: (0) WARNING: This device is using an existing MAC address and h= as not been registered VHOST_DATA: (0) WARNING: This device is using an existing MAC address and h= as not been registered I think DPDK vhost-switch filter non register MAC address. Occasionally, packets were being forwarded by vhost-switch. Setup is very simple, just configure IP address (1.1.1.1/24) on the VM eth0= , and ping an IP address (1.1.1.2) on the same subnet with Arp table entry = added. __ +---------------------------------------------------+ | | guest | | | +-------------------------------------------+ | | | | Ping ICMP | | | | +-------------------------------------------+ | | | : | | | | | | guest | v | | | +-------------------------------------------+ | | | | Kernel Virtio | | | +---+---------------+-----------+---------------+---+ __| : =20 | =20 v __ +---+---------------+----------+--------------=3D+---+ | | | vhost net0 | | | | +---------------+ | | | : | | | | | | host | V | | | +--------------+ | | | | phy port | vhost-switch | | +---+--------------+-------------------------------+ __| : =20 | =20 V =20 +--------------------------------------------------+ | | | traffic generator | | | +--------------------------------------------------+ ICMP packet has become:- 0010: 00000000100000001050b95a81000000 0088ffff1050b95a0088ffff2050b95a 0020: 0088ffff2050b95a0088ffff3050b95a 0088ffff3050b95a0088ffff4050b95a 0030: 0088ffff4050b95a0088ffff5050b95a 0088ffff5050b95a0088ffff6050b95a 0040: 0088ffff6050b95a Regards, Choi, Sy Jong Platform Application Engineer