[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <m1zk9ez5bi.fsf@fess.ebiederm.org>
Date: Fri, 11 May 2012 16:05:53 -0700
From: ebiederm@...ssion.com (Eric W. Biederman)
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: Basil Gor <basil.gor@...il.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH v4 1/2] vhost-net: fix handle_rx buffer size
"Michael S. Tsirkin" <mst@...hat.com> writes:
> On Fri, May 04, 2012 at 12:55:23PM +0400, Basil Gor wrote:
>> Take vlan header length into account, when vlan id is stored as
>> vlan_tci. Otherwise tagged packets comming from macvtap will be
>> truncated.
>>
>> Signed-off-by: Basil Gor <basil.gor@...il.com>
>
> Acked-by: Michael S. Tsirkin <mst@...hat.com>
>
> This doesn't fix packet socket backends but that can be
> handled separately later.
Yes that seems good enough.
Let me recommend just taking the packet out of the socket queue
instead of calling the recvmsg method. Since vhost/net.c is
already munging with the queue directly that should make
it easy to avoid the peculiarities of pf_packet sockets
for reporting vlan information.
Eric
--
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