From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from COL004-OMC4S3.hotmail.com (col004-omc4s3.hotmail.com [65.55.34.205]) by dpdk.org (Postfix) with ESMTP id C0EDD30E for ; Thu, 3 Jul 2014 13:03:38 +0200 (CEST) Received: from COL402-EAS334 ([65.55.34.201]) by COL004-OMC4S3.hotmail.com with Microsoft SMTPSVC(7.5.7601.22701); Thu, 3 Jul 2014 04:03:58 -0700 X-TMN: [tO6R72tYPWc0O5t8hYFEbBmjO87GNaXy] X-Originating-Email: [jinronggong@hotmail.com] Message-ID: From: GongJinrong To: "'Thomas Monjalon'" , "'Hiroshi Shimamoto'" References: <7F861DC0615E0C47A872E6F3C5FCDDBD0111B25E@BPXM14GP.gisp.nec.co.jp> <14317893.TJGThdBlHn@xps13> <7F861DC0615E0C47A872E6F3C5FCDDBD0111B348@BPXM14GP.gisp.nec.co.jp> <3856470.KKoi0bR8VV@xps13> In-Reply-To: Date: Thu, 3 Jul 2014 19:03:57 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQABAgMEramXHRtRM5iQJWZkIyn4KQDW85znAHUZ5DsA4GxQXgBYT2oiAEq596EAfTMiKgCvdZyHnwt3XaA= Content-Language: zh-cn X-OriginalArrivalTime: 03 Jul 2014 11:03:58.0949 (UTC) FILETIME=[7D683150:01CF96AE] Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Testing memnic for VM to VM transfer 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, 03 Jul 2014 11:03:39 -0000 Hi, Thomas, I cannot find the host-sim, where can I get it? -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of GongJinrong Sent: Thursday, July 03, 2014 2:35 PM To: 'Thomas Monjalon'; 'Hiroshi Shimamoto' Cc: dev@dpdk.org Subject: Re: [dpdk-dev] Testing memnic for VM to VM transfer Thanks Thomas=A3=ACI will try it^^ -----Original Message----- From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] Sent: Wednesday, July 02, 2014 11:59 PM To: Hiroshi Shimamoto Cc: GongJinrong; dev@dpdk.org; 'John Joyce (joycej)'; Olivier MATZ Subject: Re: [dpdk-dev] Testing memnic for VM to VM transfer 2014-06-18 12:06, Hiroshi Shimamoto: > 2014-06-18 13:49, Thomas Monjalon: > > 2014-06-18 11:42, Hiroshi Shimamoto: > > > 2014-06-18 19:26, GongJinrong: > > > > Do you have any idea that how to write a host application to put = > > > > the data to guest memnic PMD? > > >=20 > > > Yes, basically I made the MEMNIC interface work with DPDK vSwitch. > > >=20 > > > By the way, you can mmap() the shm which specified as the ivshmem=20 > > > and put the proper data to send a packet to guest PMD. > > > I don't have time to make proper code, but can advise you; please=20 > > > see common/memnic.h and the memory layout. > > > 1) Set magic and version in header on host. > > > 2) Initialize PMD on guest. > > > 3) Check the reset is 1 and set valid to 1, reset to 0 on host. > > > 4) Use uplink area the default block size 4K. > > >=20 > > > Set len and fill ether frame data, then set the status to 2 on host. > > > Guest PMD may receive the packet. > > > Proceed to the next packet block. > >=20 > > Such application should be integrated in memnic repository. > > I know Olivier wrote one which could be sent on next week. >=20 > yeah, I just begin to feel to need such a software in the repository. I've pushed the test application (host-sim) that Olivier wrote. Feel free to improve it. I think that we could also use the PMD driver in host side with some modifications. -- Thomas