[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15ddcffd0909150611s2e172f19xa8abe794abf13159@mail.gmail.com>
Date: Tue, 15 Sep 2009 16:11:22 +0300
From: Or Gerlitz <or.gerlitz@...il.com>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: Or Gerlitz <ogerlitz@...taire.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
herbert@...dor.apana.org.au
Subject: Re: [PATCH RFC] tun: export underlying socket
On 9/14/09, Michael S. Tsirkin <mst@...hat.com> wrote:
>> 3. for tun fd
>> VM.TX is translated by vhost to sendmsg which is translated by tun to
>> netif_rx which is then handled by the bridge
>> NIC RX goes to the bridge which xmits the packet a tun interface, now
>> what makes tun provide this packet to vhost and how it is done?
> Same as above. vhost polls tun and calls recvmsg on the socket
no, correct if I'm wrong, but recvmsg calls tun_do_read and the later
calls tun_put_user to the packet goes to user space and not into the virtq
Or.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists