From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by dpdk.org (Postfix) with ESMTP id B67FE30D for ; Wed, 2 Jul 2014 17:58:46 +0200 (CEST) Received: by mail-we0-f173.google.com with SMTP id t60so11546087wes.18 for ; Wed, 02 Jul 2014 08:59:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=wCvrnRYcTEvCNkUcxQr1MBRMWtJULS6pLrpJyPiWkwU=; b=m2CkOetGNCn1a8ng5dwZ/ztsLgnLwbeDXQcepKOZ+StXBvtyno32n9YhwlhwCZ7zd4 7N4neLk302BsmIPF9eiR03/suQYBf7J5W0veEVJW8tBo9+8IU9Z0hI5Z4KyTc2mhDeI/ IkQaz6NZR6cpxR2DdwI5BtTe9GPsET1qeRObKD0UPL3aXU8xpgHDvBM3Ce1bYBy6mGl/ la0tBJERqJWCXNQIyvijK/kpKxJZYHaFly6MX4OvSDWdw8DLYeQ6vHxYqoPfExd8ChyZ jWMbKS2nkuff6CbT20oB0PkyHft9RpJqvZT3qunLLyxdHw758aUUdbMVQJK1IdQrpnNx gKDA== X-Gm-Message-State: ALoCoQnn2YOex2xatpx9cVuXQW0VIOi+EQqFz2VQr+i1XPGcTI4e4KVg1r7OXS5mZcbkFPwCqmwG X-Received: by 10.180.198.116 with SMTP id jb20mr5094068wic.59.1404316747182; Wed, 02 Jul 2014 08:59:07 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id cj8sm55908300wjb.5.2014.07.02.08.59.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jul 2014 08:59:06 -0700 (PDT) Date: Wed, 02 Jul 2014 08:59:06 -0700 (PDT) X-Google-Original-Date: Wed, 02 Jul 2014 17:59 +0200 From: Thomas Monjalon To: Hiroshi Shimamoto Message-ID: <3856470.KKoi0bR8VV@xps13> Organization: 6WIND User-Agent: KMail/4.13.1 (Linux/3.14.6-1-ARCH; KDE/4.13.1; x86_64; ; ) In-Reply-To: <7F861DC0615E0C47A872E6F3C5FCDDBD0111B348@BPXM14GP.gisp.nec.co.jp> References: <7F861DC0615E0C47A872E6F3C5FCDDBD0111B25E@BPXM14GP.gisp.nec.co.jp> <14317893.TJGThdBlHn@xps13> <7F861DC0615E0C47A872E6F3C5FCDDBD0111B348@BPXM14GP.gisp.nec.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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, 02 Jul 2014 15:58:46 -0000 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? > > > > > > 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. 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