From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr9ED-0004Nj-2F for qemu-devel@nongnu.org; Wed, 19 Nov 2014 12:39:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xr9EB-0002Gz-Vi for qemu-devel@nongnu.org; Wed, 19 Nov 2014 12:39:41 -0500 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:54751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xr9EB-0002Gt-Oz for qemu-devel@nongnu.org; Wed, 19 Nov 2014 12:39:39 -0500 Received: by mail-wg0-f45.google.com with SMTP id b13so1411579wgh.32 for ; Wed, 19 Nov 2014 09:39:38 -0800 (PST) MIME-Version: 1.0 Sender: lukego@gmail.com In-Reply-To: References: Date: Wed, 19 Nov 2014 18:39:38 +0100 Message-ID: From: Luke Gorrie Content-Type: multipart/alternative; boundary=047d7b622326242290050839b236 Subject: Re: [Qemu-devel] directly inject packet in vrings and not use NetClient APIs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anshul Makkar Cc: qemu-devel , Nikolay Nikolaev --047d7b622326242290050839b236 Content-Type: text/plain; charset=UTF-8 Hi Anshul, On Wednesday, November 19, 2014, Anshul Makkar < anshul.makkar@profitbricks.com> wrote: > > > I have implemented a usermode app that is using vhost-user backend and > gets direct access to the guest vrings. I am able to receive packets but > when I post directly to vring and issue kick, packets fails to reach the > guest. (ifconfig eth0 RX counter is unchanged. tcpdump also doesn't detect > any packets.) . > Sounds to me like something that should work. I'd suggest debug-compiling the virtio-net driver in the guest to see why it doesn't take the packet. Gets the kick? Processes the used ring? MAC address is accepted? Etc. That has been the most productive approach for me. --047d7b622326242290050839b236 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Anshul,

On Wednesday, November 19, 2014, Anshul Makka= r <anshul.makkar@profi= tbricks.com> wrote:
<= div>
I have implemented a usermode app that is using vhost-user ba= ckend and gets direct access to the guest vrings. I am able to receive pack= ets but when I post directly to vring and issue kick, packets fails to reac= h the guest. (ifconfig eth0 RX counter is unchanged. tcpdump also doesn'= ;t detect any packets.) .=C2=A0

Sounds to me like something that should work.
<= br>
I'd suggest debug-compiling the virtio-net driver in the = guest to see why it doesn't take the packet. Gets the kick? Processes t= he used ring? MAC address is accepted? Etc. That has been the most producti= ve approach for me.



--047d7b622326242290050839b236--