Jason Wang ce232ce01d macvtap: signal truncated packets
macvtap_put_user() never return a value grater than iov length, this in fact
bypasses the truncated checking in macvtap_recvmsg(). Fix this by always
returning the size of packet plus the possible vlan header to let the trunca
checking work.

Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-12-11 15:23:06 -05:00
..
2013-11-27 01:03:27 +01:00
2013-11-27 13:55:16 -05:00
2013-11-19 15:53:02 -05:00
2013-10-29 12:53:07 +02:00
2013-11-27 01:03:43 +01:00
2013-11-07 19:24:20 +01:00
2013-11-28 09:57:46 -08:00
2013-11-27 01:03:27 +01:00
2013-11-19 01:06:28 +01:00
2013-12-11 15:23:06 -05:00
2013-11-15 14:05:15 -08:00
2013-10-24 16:18:40 +01:00
2013-11-18 15:35:09 -08:00
2013-12-02 10:12:01 -08:00