vhost-net: fix handle_rx buffer size
authorBasil Gor <basil.gor@gmail.com>
Thu, 3 May 2012 22:55:23 +0000 (22:55 +0000)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 18 May 2012 10:39:13 +0000 (15:39 +0530)
commit25570710861e94bb36d9e3a620698072d78a74f4
tree1d783312fbb3f1e99a49ff3cd6ad6e9fea02defc
parent249f36a4430058fc5f32ebd2deee9019f8f7c17a
vhost-net: fix handle_rx buffer size

Take vlan header length into account, when vlan id is stored as
vlan_tci. Otherwise tagged packets coming from macvtap will be
truncated.

Signed-off-by: Basil Gor <basil.gor@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c