From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from COL004-OMC4S12.hotmail.com (col004-omc4s12.hotmail.com [65.55.34.214]) by dpdk.org (Postfix) with ESMTP id 2A55DB11D for ; Wed, 18 Jun 2014 14:25:40 +0200 (CEST) Received: from COL402-EAS380 ([65.55.34.201]) by COL004-OMC4S12.hotmail.com with Microsoft SMTPSVC(7.5.7601.22701); Wed, 18 Jun 2014 05:25:56 -0700 X-TMN: [EJOgr62bPR0uIEpuYYrC1kjQ+6qLcxML] X-Originating-Email: [jinronggong@hotmail.com] Message-ID: From: GongJinrong To: "'Hiroshi Shimamoto'" , "'Thomas Monjalon'" References: <7F861DC0615E0C47A872E6F3C5FCDDBD0111B25E@BPXM14GP.gisp.nec.co.jp> <14317893.TJGThdBlHn@xps13> <7F861DC0615E0C47A872E6F3C5FCDDBD0111B348@BPXM14GP.gisp.nec.co.jp> In-Reply-To: <7F861DC0615E0C47A872E6F3C5FCDDBD0111B348@BPXM14GP.gisp.nec.co.jp> Date: Wed, 18 Jun 2014 20:25:55 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQABAgMEramXHRtRM5iQJWZkIyn4KQDW85znAHUZ5DsA4GxQXgBYT2oiAEq596Ge/WC3sA== Content-Language: zh-cn X-OriginalArrivalTime: 18 Jun 2014 12:25:56.0572 (UTC) FILETIME=[7457A9C0:01CF8AF0] 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: Wed, 18 Jun 2014 12:25:40 -0000 Thanks guys, I will try. -----Original Message----- From: Hiroshi Shimamoto [mailto:h-shimamoto@ct.jp.nec.com] Sent: Wednesday, June 18, 2014 8:06 PM To: Thomas Monjalon; GongJinrong Cc: dev@dpdk.org; 'John Joyce (joycej)'; Olivier MATZ Subject: RE: [dpdk-dev] Testing memnic for VM to VM transfer Hi, > Subject: Re: [dpdk-dev] Testing memnic for VM to VM transfer > > 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? > > > > Yes, basically I made the MEMNIC interface work with DPDK vSwitch. > > > > By the way, you can mmap() the shm which specified as the ivshmem > > 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 > > 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. > > 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. > > Such application should be integrated in memnic repository. > I know Olivier wrote one which could be sent on next week. yeah, I just begin to feel to need such a software in the repository. thanks, Hiroshi > > -- > Thomas